diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-10-22 13:39:21 -0700 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-10-22 13:39:21 -0700 |
commit | f96fc6c53bc8bd8888aeb291441f61a65b439413 (patch) | |
tree | 030815351f20cfa6dfb36c816c5c0d737516e784 /tests/simple | |
parent | f16847ab29d474e2b20d7f8c9f3a0f229b54c850 (diff) |
Initial setup for dealing with object properties
Diffstat (limited to 'tests/simple')
-rw-r--r-- | tests/simple/simple.cpp | 5 | ||||
-rw-r--r-- | tests/simple/simple.php | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/tests/simple/simple.cpp b/tests/simple/simple.cpp index 69cf9ce..7942a3c 100644 --- a/tests/simple/simple.cpp +++ b/tests/simple/simple.cpp @@ -143,7 +143,8 @@ public: cout << "myMethod GETS CALLED!!!!" << endl; cout << this << endl; cout << _x << endl; - +// cout << "A: " << _properties["a"] << endl; +// cout << "Z: " << _properties["z"] << endl; } }; @@ -153,8 +154,6 @@ extern "C" // export the "get_module" function that will be called by the Zend engine PHPCPP_EXPORT void *get_module() { - cout << "call get_module()" << endl; - // create extension static Php::Extension extension("simple","1.0"); diff --git a/tests/simple/simple.php b/tests/simple/simple.php index 5f3bed7..3abaa77 100644 --- a/tests/simple/simple.php +++ b/tests/simple/simple.php @@ -70,6 +70,10 @@ function slowsort($input) //$x = new my_extended_class(); //$x->myMethod(123); +$x = new my_class(); +$x->myMethod(); + + //echo(my_plus(1,2,3,4)."\n"); $array = array(); @@ -78,9 +82,9 @@ for ($i=0; $i<10000; $i++) $array[] = rand(); //$array = array(1,2,3); //print_r($array); -bubblesort($array); +//bubblesort($array); -print_r($array); +//print_r($array); //echo("my_class::a = ".$x->a."\n"); |