summaryrefslogtreecommitdiff
path: root/include/globals.h
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-08 11:41:00 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-03-08 11:41:00 +0100
commit5b93d44d2a05b3648ec13ae1f076e224d63287d5 (patch)
tree87e9566f8bf6e02105690750df618a1194eee9b0 /include/globals.h
parent8b94e46c8f044a21c18435525da84bee28594d1a (diff)
introduced Php::call() call function to make builtin, and user space functions callable from C++ space
Diffstat (limited to 'include/globals.h')
-rw-r--r--include/globals.h29
1 files changed, 1 insertions, 28 deletions
diff --git a/include/globals.h b/include/globals.h
index 6faeb8a..0278c88 100644
--- a/include/globals.h
+++ b/include/globals.h
@@ -53,35 +53,8 @@ public:
*/
Global operator[](const std::string &name);
- /**
- * Call a function in PHP
- * We have ten variants of this function, depending on the number of parameters
- * @param name Name of the function
- * @return Value
- */
- Value call(const Value &name);
- Value call(const Value &name, Value p0);
- Value call(const Value &name, Value p0, Value p1);
- Value call(const Value &name, Value p0, Value p1, Value p2);
- Value call(const Value &name, Value p0, Value p1, Value p2, Value p3);
- Value call(const Value &name, Value p0, Value p1, Value p2, Value p3, Value p4);
- Value call(const Value &name, Value p0, Value p1, Value p2, Value p3, Value p4, Value p5);
- Value call(const Value &name, Value p0, Value p1, Value p2, Value p3, Value p4, Value p5, Value p6);
- Value call(const Value &name, Value p0, Value p1, Value p2, Value p3, Value p4, Value p5, Value p6, Value p7);
- Value call(const Value &name, Value p0, Value p1, Value p2, Value p3, Value p4, Value p5, Value p6, Value p7, Value p8);
- Value call(const Value &name, Value p0, Value p1, Value p2, Value p3, Value p4, Value p5, Value p6, Value p7, Value p8, Value p9);
-
private:
/**
- * Call function with a number of parameters
- * @param name Function name
- * @param argc Number of parameters
- * @param argv The parameters
- * @return Value
- */
- Value exec(const Value &name, int argc, struct _zval_struct ***params);
-
- /**
* Constructor
*/
Globals() {}
@@ -98,7 +71,7 @@ public:
* We always have one instance
* @var Globals
*/
-extern Globals &globals;
+extern Globals &GLOBALS;
/**
* End of namespace