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 /zend/eval.cpp | |
parent | a860f85e80c48b821c8cb53fc1d98d5ac2f6f07a (diff) |
Php::dl() function now gets an extra "persistent" parameter to load extensions persistently
Diffstat (limited to 'zend/eval.cpp')
-rw-r--r-- | zend/eval.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/zend/eval.cpp b/zend/eval.cpp index 7ab4957..6d043b1 100644 --- a/zend/eval.cpp +++ b/zend/eval.cpp @@ -93,12 +93,17 @@ Value require_once(const char *filename) /** * Implementation of the dl() function - activate a different PHP extension + * + * If you open an extension persistently, the static variables inside it are + * kept open for as long as apache runs. + * * @param filename + * @param persistent */ -bool dl(const char *filename) +bool dl(const char *filename, bool persistent) { // create the module - Module module(filename); + Module module(filename, persistent); // start the module return module.start(); |