diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-10-14 02:46:52 -0700 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-10-14 02:46:52 -0700 |
commit | 53272534a76a9d8cbee4ee887e1f360c4a99728b (patch) | |
tree | 54206aca1cfa1461ba365b05e5848f2843be91b9 /src/classinfo.cpp | |
parent | 777eb276f635c949ccdcf9613ad55d42190cb387 (diff) |
The initial class properties can now only be scalar values, just like in PHP
Diffstat (limited to 'src/classinfo.cpp')
-rw-r--r-- | src/classinfo.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/classinfo.cpp b/src/classinfo.cpp index aa4d67f..6d96494 100644 --- a/src/classinfo.cpp +++ b/src/classinfo.cpp @@ -34,8 +34,11 @@ static void deallocate_object(void *object TSRMLS_DC) if (obj->cpp) delete obj->cpp; // get rid of the object properties - zend_hash_destroy(obj->php.properties); - FREE_HASHTABLE(obj->php.properties); + // @todo if we enable the following two lines, segmentation + // faults and memory corruption occurs. however, the online + // documentation does it like this + //zend_hash_destroy(obj->php.properties); + //FREE_HASHTABLE(obj->php.properties); // deallocate the entire object efree(obj); |