summaryrefslogtreecommitdiff
path: root/Examples
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-04-12 12:11:13 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-04-12 12:11:13 +0200
commita8f3d4c47b342ef1ce9c951239a1618a0912484c (patch)
tree893442596323e62762a11f22baae0fa0f3bc3165 /Examples
parenta860f85e80c48b821c8cb53fc1d98d5ac2f6f07a (diff)
Php::dl() function now gets an extra "persistent" parameter to load extensions persistently
Diffstat (limited to 'Examples')
-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);
}
/**