diff options
author | Zeev Suraski <zeev@php.net> | 2002-08-15 23:59:47 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2002-08-15 23:59:47 +0000 |
commit | 9e743e83a50a3edbc82dc84ee3404a9bc8edb6c0 (patch) | |
tree | 03230f87226440da1b4a480720b220e827f7bfda /sapi/apache | |
parent | 900651b7ab9e4ecb0030cd30a1dce631feedc18f (diff) | |
download | php-git-9e743e83a50a3edbc82dc84ee3404a9bc8edb6c0.tar.gz |
Fix a NASTY multithreading bug with in the Apache module
Diffstat (limited to 'sapi/apache')
-rw-r--r-- | sapi/apache/mod_php4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index 19d03f7e36..4e9e1cf053 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -649,7 +649,7 @@ static void *php_create_dir(pool *p, char *dummy) HashTable *per_dir_info; per_dir_info = (HashTable *) malloc(sizeof(HashTable)); - zend_hash_init(per_dir_info, 5, NULL, (void (*)(void *)) destroy_per_dir_entry, 1); + zend_hash_init_ex(per_dir_info, 5, NULL, (void (*)(void *)) destroy_per_dir_entry, 1, 0); register_cleanup(p, (void *) per_dir_info, (void (*)(void *)) php_destroy_per_dir_info, (void (*)(void *)) zend_hash_destroy); return per_dir_info; |