summaryrefslogtreecommitdiff
path: root/TSRM/TSRM.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-09-24 02:11:05 +0200
committerAnatol Belski <ab@php.net>2014-09-24 02:11:05 +0200
commitaa8c424e0f4cc4d725d2437f07ace2390a90ff2e (patch)
treea1e9359672e04045241aaa0743cae4d7e033d5ba /TSRM/TSRM.c
parent58a2b05d7b5d4a9b3c3ac24ac82fdb958965dd05 (diff)
downloadphp-git-aa8c424e0f4cc4d725d2437f07ace2390a90ff2e.tar.gz
call ctor if it's not done yet
Diffstat (limited to 'TSRM/TSRM.c')
-rw-r--r--TSRM/TSRM.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c
index b4206b6f4f..82d8413e76 100644
--- a/TSRM/TSRM.c
+++ b/TSRM/TSRM.c
@@ -333,7 +333,7 @@ static void allocate_new_resource(tsrm_tls_entry **thread_resources_ptr, THREAD_
CALL_NEW_THREAD_BEGIN_HANDLER(thread_id, &(*thread_resources_ptr)->storage);
}
for (i=0; i<id_count; i++) {
- if (resource_types_table[i].done) {
+ if (!resource_types_table[i].done) {
if (resource_types_table[i].ctor) {
CALL_TSRMG_CTOR(resource_types_table[i].ctor, TSRMG_PTR((*thread_resources_ptr)->storage, resource_types_table[i].offset), &(*thread_resources_ptr)->storage);
}