summaryrefslogtreecommitdiff
path: root/main/php_ini.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-07-11 14:29:38 +0000
committerZeev Suraski <zeev@php.net>2000-07-11 14:29:38 +0000
commit168ccfc133d61bc517cf5cbc9ca1992a091476d5 (patch)
tree8c1d12aa64189fec9e3cae31a52099daa6c27ff9 /main/php_ini.c
parent1263932a0dd7065497f97dc89d13df74d75ac382 (diff)
downloadphp-git-168ccfc133d61bc517cf5cbc9ca1992a091476d5.tar.gz
Disable the hash_apply() protection on hashes that persist across requests - it's unsafe
because we may be aborted at any point @- Fixed a possible data corruption in case of a huge amount of aborted requests (Zeev)
Diffstat (limited to 'main/php_ini.c')
-rw-r--r--main/php_ini.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_ini.c b/main/php_ini.c
index 44e7347bb3..417415f594 100644
--- a/main/php_ini.c
+++ b/main/php_ini.c
@@ -62,7 +62,7 @@ static int php_restore_ini_entry_cb(php_ini_entry *ini_entry, int stage)
*/
int php_ini_mstartup()
{
- if (zend_hash_init(&known_directives, 100, NULL, NULL, 1)==FAILURE) {
+ if (zend_hash_init_ex(&known_directives, 100, NULL, NULL, 1, 0)==FAILURE) {
return FAILURE;
}
return SUCCESS;