summaryrefslogtreecommitdiff
path: root/zend/eval.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zend/eval.cpp')
-rw-r--r--zend/eval.cpp9
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();