diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-04-12 12:11:13 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2015-04-12 12:11:13 +0200 |
commit | a8f3d4c47b342ef1ce9c951239a1618a0912484c (patch) | |
tree | 893442596323e62762a11f22baae0fa0f3bc3165 /Examples | |
parent | a860f85e80c48b821c8cb53fc1d98d5ac2f6f07a (diff) |
Php::dl() function now gets an extra "persistent" parameter to load extensions persistently
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/DlUnrestricted/dlunrestricted.cpp | 5 |
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 ¶ms) // 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); } /** |