mirror of
https://github.com/php/php-src.git
synced 2025-01-24 04:33:39 +08:00
MFB "Disabled $GLOBALS' refcount modification"
This commit is contained in:
parent
c2f830ca21
commit
374723d056
@ -302,7 +302,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);
|
||||
@ -346,7 +348,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