We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e27198a commit 31e36d8Copy full SHA for 31e36d8
protocolbuffers.c
@@ -284,15 +284,26 @@ PHP_INI_BEGIN()
284
PHP_INI_END()
285
286
static PHP_GINIT_FUNCTION(protocolbuffers)
287
+{
288
+ memset(protocolbuffers_globals, 0, sizeof(zend_protocolbuffers_globals));
289
+}
290
+
291
+static void php_protocolbuffers_cleanup_global_handles(TSRMLS_D)
292
{
293
}
294
295
static PHP_GSHUTDOWN_FUNCTION(protocolbuffers)
296
297
+ php_protocolbuffers_cleanup_global_handles(TSRMLS_C);
298
299
300
+static void php_protocolbuffers_init_globals() {
301
302
303
304
PHP_MINIT_FUNCTION(protocolbuffers)
305
306
+ ZEND_INIT_MODULE_GLOBALS(protocolbuffers, php_protocolbuffers_init_globals, NULL);
307
REGISTER_INI_ENTRIES();
308
309
php_protocolbuffers_init(TSRMLS_C);
0 commit comments