From 168ccfc133d61bc517cf5cbc9ca1992a091476d5 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Tue, 11 Jul 2000 14:29:38 +0000 Subject: 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) --- main/php_ini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/php_ini.c') 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; -- cgit v1.2.1