1
0
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:
Dmitry Stogov
2005-05-31 17:40:48 +00:00
parent 08fdbaecf8
commit ce6b662ed6

View File

@@ -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);