summaryrefslogtreecommitdiff
path: root/tests/simple/simple.php
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-09-25 14:59:58 -0700
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2013-09-25 14:59:58 -0700
commitffdaa0590d33ea89d116f6c56df2474cc0675ec9 (patch)
tree6b0d71337879892b43a4af90e6757d53ecc77853 /tests/simple/simple.php
parent753402a84b40ff4dc9697dea1d2d4aa037ea7624 (diff)
{auto} PHP objects can now be implemented in C++. Constructors and destructors get called at the appropriate time, but not yet any of the other methods
Diffstat (limited to 'tests/simple/simple.php')
-rw-r--r--tests/simple/simple.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/simple/simple.php b/tests/simple/simple.php
index 10cb603..07e3f78 100644
--- a/tests/simple/simple.php
+++ b/tests/simple/simple.php
@@ -12,10 +12,10 @@ $myvar = "hoi";
class MyClass {
- public function __toString()
- {
- return "aksjdfhsdfkj";
- }
+ public function __toString()
+ {
+ return "aksjdfhsdfkj";
+ }
}
$g1 = 123;
@@ -35,7 +35,10 @@ echo("g3: $g3\n");
if (class_exists("my_class")) echo("Warempel, de class bestaat\n");
$x = new my_class();
+unset($x);
+
+echo("done\n");
-$x->my_method();
+//$x->my_method();