summaryrefslogtreecommitdiff
path: root/Examples
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-03-27 01:19:12 +0600
committervalmat <ufabiz@gmail.com>2014-03-27 01:19:12 +0600
commitd0d062b4a05a9eb64b8d2e6d038af96ac532e4b3 (patch)
tree4fc4026b988ca6da18a88d2e34dd1d88c28d24ae /Examples
parent702c95cf779226550af6b33255a8e1b28ccca428 (diff)
Added new tests.
Due to support zts broke the ability to run tests without installation - fixed.
Diffstat (limited to 'Examples')
-rw-r--r--Examples/Globals/globals.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Examples/Globals/globals.cpp b/Examples/Globals/globals.cpp
index 2370a8a..98bcfd8 100644
--- a/Examples/Globals/globals.cpp
+++ b/Examples/Globals/globals.cpp
@@ -23,29 +23,29 @@ using namespace std;
*/
Php::Value process_globals()
{
- // all global variables can be accessed via the Php::globals variable,
+ // all global variables can be accessed via the Php::GLOBALS variable,
// which is more or less the same as the PHP $_GLOBALS variable
// set a global variable
- Php::globals["a"] = 1;
+ Php::GLOBALS["a"] = 1;
// increment a global variable
- Php::globals["b"] += 1;
+ Php::GLOBALS["b"] += 1;
// set a global variable to be an array
- Php::globals["c"] = Php::Array();
+ Php::GLOBALS["c"] = Php::Array();
// add a member to an array
- Php::globals["c"]["member"] = 123;
+ Php::GLOBALS["c"]["member"] = 123;
// and increment it
- Php::globals["c"]["member"] += 77;
+ Php::GLOBALS["c"]["member"] += 77;
// change value e
- Php::globals["e"] = Php::globals["e"][0]("hello");
+ Php::GLOBALS["e"] = Php::GLOBALS["e"][0]("hello");
// if a global variable holds a function, we can call it
- return Php::globals["d"](1,2,3);
+ return Php::GLOBALS["d"](1,2,3);
}
// Symbols are exported according to the "C" language