diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-12 05:46:02 -0700 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-12 05:46:02 -0700 |
commit | 9634a336f080bc15c1e67495eb9216d1863808f8 (patch) | |
tree | 139d3abc65f156d5e72e02364481fea370c807dc /tests/simple/simple.php | |
parent | 68fd128d82819db1022137a45ca3224cee8ef029 (diff) |
It now is possible to access global variables, using environment[varname], and to set global variable using environment[varname] = "value"
Diffstat (limited to 'tests/simple/simple.php')
-rw-r--r-- | tests/simple/simple.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/simple/simple.php b/tests/simple/simple.php index 6f70a7a..af9a2a2 100644 --- a/tests/simple/simple.php +++ b/tests/simple/simple.php @@ -18,11 +18,16 @@ class MyClass { } } +$g1 = 123; +$g2 = "abc"; + $result = my_plus(new MyClass(), array(), new MyClass(), $myvar, "blabla", new XXX()); echo("myvar = $myvar\n"); echo("resultaat: $result\n"); -print_r($result); +echo("g1: $g1\n"); +echo("g2: $g2\n"); +echo("g3: $g3\n"); |