summaryrefslogtreecommitdiff
path: root/Examples/DlUnrestricted/dlunrestricted.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/DlUnrestricted/dlunrestricted.cpp')
-rw-r--r--Examples/DlUnrestricted/dlunrestricted.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Examples/DlUnrestricted/dlunrestricted.cpp b/Examples/DlUnrestricted/dlunrestricted.cpp
index bdc7cae..a7ec7ed 100644
--- a/Examples/DlUnrestricted/dlunrestricted.cpp
+++ b/Examples/DlUnrestricted/dlunrestricted.cpp
@@ -29,8 +29,11 @@ Php::Value dl_unrestricted(Php::Parameters &params)
// get extension name
std::string pathname = params[0];
+ // should it be opened persistently?
+ bool persistent = params.size() > 1 ? params[1].boolValue() : false;
+
// load the extension
- return Php::dl(pathname);
+ return Php::dl(pathname, persistent);
}
/**