diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/call.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/call.h b/include/call.h index 16de1fe..e1bb12d 100644 --- a/include/call.h +++ b/include/call.h @@ -13,6 +13,14 @@ namespace Php { /** + * List of functions that are available for use in PHP + */ +extern bool class_exists(const char *classname, size_t size, bool autoload = true); +inline bool class_exists(const char *classname, bool autoload = true) { return class_exists(classname, strlen(classname), autoload); } +inline bool class_exists(const std::string &classname, bool autoload = true) { return class_exists(classname.c_str(), classname.size(), autoload); } +extern Value eval(const std::string &phpCode); + +/** * Call a function in PHP * @param name Name of the function to call * @param params Variable number of parameters |