diff options
author | Zeev Suraski <zeev@php.net> | 2000-07-11 14:29:38 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-07-11 14:29:38 +0000 |
commit | 168ccfc133d61bc517cf5cbc9ca1992a091476d5 (patch) | |
tree | 8c1d12aa64189fec9e3cae31a52099daa6c27ff9 /main/SAPI.c | |
parent | 1263932a0dd7065497f97dc89d13df74d75ac382 (diff) | |
download | php-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/SAPI.c')
-rw-r--r-- | main/SAPI.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index aaceb4266c..ae89815a82 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -75,7 +75,7 @@ SAPI_API void (*sapi_error)(int error_type, const char *message, ...); SAPI_API void sapi_startup(sapi_module_struct *sf) { sapi_module = *sf; - zend_hash_init(&known_post_content_types, 5, NULL, NULL, 1); + zend_hash_init_ex(&known_post_content_types, 5, NULL, NULL, 1, 0); sapi_register_post_entries(supported_post_entries); |