diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-02 15:49:55 +0100 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-03-02 15:49:55 +0100 |
commit | 51f4788b2b51a21894ae49821abc67c2fab4a68a (patch) | |
tree | f7942b5dd9d33f511fb8d09df23519c51fb2e515 /src/classbase.cpp | |
parent | 41bd759f31d625b5f73dd3a31d76a91efbde8ad7 (diff) |
fixed settings Base::_self variable to a valid, editable value object
Diffstat (limited to 'src/classbase.cpp')
-rw-r--r-- | src/classbase.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/classbase.cpp b/src/classbase.cpp index 6a679b3..87a1cd2 100644 --- a/src/classbase.cpp +++ b/src/classbase.cpp @@ -49,7 +49,8 @@ static void clone_object(void *object, void **clone TSRMLS_DC) /** * Function that is called when an instance of the class needs to be created. * This function will create the C++ class, and the PHP object - * @param type Pointer to the class + * @param type Pointer to the class information + * @return zend_object_value The newly created object */ static zend_object_value create_object(zend_class_entry *type TSRMLS_DC) { @@ -100,7 +101,7 @@ static zend_object_value create_object(zend_class_entry *type TSRMLS_DC) result.handle = zend_objects_store_put(object, NULL, deallocate_object, clone_object TSRMLS_CC); // finally, construct the cpp object - object->cpp = info->construct(&object->php); + object->cpp = info->construct(Value(result)); // done return result; |