php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61649
Patch bug61649.patch revision 2012-04-06 12:18 UTC by laruence@php.net

Patch bug61649.patch for Scripting Engine problem Bug #61649

Patch version 2012-04-06 12:18 UTC

Return to Bug #61649 | Download this patch
Patch Revisions:

Developer: laruence@php.net

diff --git a/Zend/zend_gc.h b/Zend/zend_gc.h
index 5effa5a..308ab64 100644
--- a/Zend/zend_gc.h
+++ b/Zend/zend_gc.h
@@ -179,7 +179,7 @@ END_EXTERN_C()
 
 static zend_always_inline void gc_zval_check_possible_root(zval *z TSRMLS_DC)
 {
-	if (z->type == IS_ARRAY || z->type == IS_OBJECT) {
+	if ((z->type == IS_ARRAY && !z->value.ht->persistent) || z->type == IS_OBJECT) {
 		gc_zval_possible_root(z TSRMLS_CC);
 	}
 }
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 14:01:32 2024 UTC