mirror of
https://github.com/php/php-src.git
synced 2026-03-31 04:32:19 +02:00
Fixed possible memory corruption on request shutdown
`valgrind -q --tool=memcheck sapi/cli/php tests/reflection/001.phpt`
This commit is contained in:
@@ -685,6 +685,8 @@ int php_hash_environment(TSRMLS_D)
|
||||
dummy_track_vars_array->refcount++;
|
||||
}
|
||||
PG(http_globals)[i] = dummy_track_vars_array;
|
||||
} else {
|
||||
PG(http_globals)[i]->refcount++;
|
||||
}
|
||||
|
||||
zend_hash_update(&EG(symbol_table), auto_global_records[i].name, auto_global_records[i].name_len, &PG(http_globals)[i], sizeof(zval *), NULL);
|
||||
|
||||
Reference in New Issue
Block a user