summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2002-08-15 23:59:47 +0000
committerZeev Suraski <zeev@php.net>2002-08-15 23:59:47 +0000
commit9e743e83a50a3edbc82dc84ee3404a9bc8edb6c0 (patch)
tree03230f87226440da1b4a480720b220e827f7bfda /sapi
parent900651b7ab9e4ecb0030cd30a1dce631feedc18f (diff)
downloadphp-git-9e743e83a50a3edbc82dc84ee3404a9bc8edb6c0.tar.gz
Fix a NASTY multithreading bug with in the Apache module
Diffstat (limited to 'sapi')
-rw-r--r--sapi/apache/mod_php4.c2
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;