diff options
Diffstat (limited to 'tests/simple/simple.cpp')
-rw-r--r-- | tests/simple/simple.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/simple/simple.cpp b/tests/simple/simple.cpp index 2ab177f..dede458 100644 --- a/tests/simple/simple.cpp +++ b/tests/simple/simple.cpp @@ -15,10 +15,18 @@ */ using namespace std; -static Php::Value my_plus(Php::Parameters ¶ms) +static Php::Value my_plus(Php::Environment &env, Php::Parameters ¶ms) { string p1 = params[0]; string p2 = params[1]; + + cout << "global g1: " << env["g1"].stringValue() << endl; + cout << "global g2: " << env["g2"].stringValue() << endl; + + Php::Global g(env["g3"]); + + g = "zo kan het ook"; + return p1 + p2; } |