Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute_API.c
| From: | Marcus Boerger | Date: | Mon, 11 Aug 2008 17:43:40 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute_API.c | ||
| References: | 1 2 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-7026@lists.php.net to get a copy of this message | ||
Hello Stanislav,
sure, something might rely on function table or classe tables being
intact when freeing object storage. This is for instance the case with
reflection.
marcus
Monday, August 11, 2008, 7:36:37 PM, you wrote:
> Hi!
> Could you explain the reason for this change?
>> #include <stdio.h>
>> #include <signal.h>
>> @@ -311,6 +311,8 @@
>>
>> zend_vm_stack_destroy(TSRMLS_C);
>>
>> + zend_objects_store_free_object_storage(&EG(objects_store) TSRMLS_CC);
>> +
>> /* Destroy all op arrays */
>> if (EG(full_tables_cleanup)) {
>> zend_hash_apply(EG(function_table), (apply_func_t)
>> clean_non_persistent_function_full TSRMLS_CC);
>> @@ -325,7 +327,6 @@
>> FREE_HASHTABLE(*EG(symtable_cache_ptr));
>> EG(symtable_cache_ptr)--;
>> }
>> - zend_objects_store_free_object_storage(&EG(objects_store) TSRMLS_CC);
>> } zend_end_try();
>>
>> zend_try {
>>
>>
>>
> --
> Stanislav Malyshev, Zend Software Architect
> stas@zend.com http://www.zend.com/
> (408)253-8829 MSN: stas@zend.com
Best regards,
Marcus