summaryrefslogtreecommitdiff
path: root/ext/standard/assert.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/assert.c')
-rw-r--r--ext/standard/assert.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/standard/assert.c b/ext/standard/assert.c
index 8359b3d057..5c09a4b839 100644
--- a/ext/standard/assert.c
+++ b/ext/standard/assert.c
@@ -82,10 +82,15 @@ PHP_INI_BEGIN()
PHP_INI_ENTRY("assert.callback", NULL, PHP_INI_ALL, NULL)
PHP_INI_END()
+static void php_assert_init_globals(php_assert_globals *assert_globals)
+{
+}
+
PHP_MINIT_FUNCTION(assert)
{
#ifdef ZTS
+ ELS_FETCH();
assert_globals_id = ts_allocate_id(sizeof(php_assert_globals), (ts_allocate_ctor) php_assert_init_globals, NULL);
#endif