mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Disabled $GLOBALS' refcount modification
This commit is contained in:
parent
47badbe86b
commit
5031528ec7
@ -305,7 +305,9 @@ static void zval_scan_black(zval *pz TSRMLS_DC)
|
||||
|
||||
static int children_scan_black(zval **pz TSRMLS_DC)
|
||||
{
|
||||
(*pz)->refcount__gc++;
|
||||
if (Z_TYPE_PP(pz) != IS_ARRAY || Z_ARRVAL_PP(pz) != &EG(symbol_table)) {
|
||||
(*pz)->refcount__gc++;
|
||||
}
|
||||
|
||||
if (GC_ZVAL_GET_COLOR(*pz) != GC_BLACK) {
|
||||
zval_scan_black(*pz TSRMLS_CC);
|
||||
@ -349,7 +351,9 @@ static void zval_mark_grey(zval *pz TSRMLS_DC)
|
||||
|
||||
static int children_mark_grey(zval **pz TSRMLS_DC)
|
||||
{
|
||||
(*pz)->refcount__gc--;
|
||||
if (Z_TYPE_PP(pz) != IS_ARRAY || Z_ARRVAL_PP(pz) != &EG(symbol_table)) {
|
||||
(*pz)->refcount__gc--;
|
||||
}
|
||||
zval_mark_grey(*pz TSRMLS_CC);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user