diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-15 13:57:53 -0700 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-15 13:57:53 -0700 |
commit | 9e1ecc534bace7d00a265a49018c0148a56361ae (patch) | |
tree | f7a779b999a7aed942510e3d448355f3554c20c7 /tests | |
parent | 9634a336f080bc15c1e67495eb9216d1863808f8 (diff) |
Added Environment::call() method that makes it possible to call PHP functions
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simple/simple.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/simple/simple.cpp b/tests/simple/simple.cpp index dede458..fbc29d4 100644 --- a/tests/simple/simple.cpp +++ b/tests/simple/simple.cpp @@ -27,6 +27,10 @@ static Php::Value my_plus(Php::Environment &env, Php::Parameters ¶ms) g = "zo kan het ook"; + string output = env.call("strtoupper","test in lowercase"); + + cout << "output: " << output << endl; + return p1 + p2; } |