diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-25 09:41:17 -0700 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-09-25 09:41:17 -0700 |
commit | 753402a84b40ff4dc9697dea1d2d4aa037ea7624 (patch) | |
tree | 9ff5e95a534265d01ae732a1e39dd3aaf3127803 /tests/simple/simple.cpp | |
parent | 49ac629257835426c311fb7b92b23a9138a9d77b (diff) |
Constructor gets almost called when object is constructed
Diffstat (limited to 'tests/simple/simple.cpp')
-rw-r--r-- | tests/simple/simple.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/simple/simple.cpp b/tests/simple/simple.cpp index f2a5207..39e615a 100644 --- a/tests/simple/simple.cpp +++ b/tests/simple/simple.cpp @@ -45,7 +45,32 @@ static Php::Value my_plus(Php::Environment &env, Php::Parameters ¶ms) */ class MyCustomClass : public Php::Base { +private: + int _x; + public: + MyCustomClass() + { + } + + virtual void __construct() + { + + } + + virtual void __destruct() + { + + + } + + void myMethod(Php::Parameters ¶ms) + { + + + } + + }; // symbols are exported according to the "C" language |