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 /include | |
parent | a860f85e80c48b821c8cb53fc1d98d5ac2f6f07a (diff) |
Php::dl() function now gets an extra "persistent" parameter to load extensions persistently
Diffstat (limited to 'include')
-rw-r--r-- | include/call.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/call.h b/include/call.h index 36574ce..094c7d2 100644 --- a/include/call.h +++ b/include/call.h @@ -27,9 +27,9 @@ extern PHPCPP_EXPORT bool define(const std::string &name, const Value &value extern PHPCPP_EXPORT bool defined(const char *constant); extern PHPCPP_EXPORT bool defined(const char *constant, size_t size); extern PHPCPP_EXPORT bool defined(const std::string &constant); -extern PHPCPP_EXPORT bool dl(const char *filename); -inline PHPCPP_EXPORT bool dl(const std::string &filename) { return dl(filename.c_str()); } -inline PHPCPP_EXPORT bool dl(const Value &filename) { return dl(filename.rawValue()); } +extern PHPCPP_EXPORT bool dl(const char *filename, bool persistent = false); +inline PHPCPP_EXPORT bool dl(const std::string &filename, bool persistent = false) { return dl(filename.c_str(), persistent); } +inline PHPCPP_EXPORT bool dl(const Value &filename, bool persistent = false) { return dl(filename.rawValue(), persistent); } extern PHPCPP_EXPORT Value eval(const char *phpCode); inline PHPCPP_EXPORT Value eval(const std::string &phpCode) { return eval(phpCode.c_str()); } extern PHPCPP_EXPORT Value include(const char *filename); |