From ffdaa0590d33ea89d116f6c56df2474cc0675ec9 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Wed, 25 Sep 2013 14:59:58 -0700 Subject: {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 --- tests/simple/simple.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'tests/simple/simple.php') 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(); -- cgit v1.2.3