Skip to content

Commit 31e36d8

Browse files
committed
probably this will fix travis build
1 parent e27198a commit 31e36d8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

protocolbuffers.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,26 @@ PHP_INI_BEGIN()
284284
PHP_INI_END()
285285

286286
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)
287292
{
288293
}
289294

290295
static PHP_GSHUTDOWN_FUNCTION(protocolbuffers)
291296
{
297+
php_protocolbuffers_cleanup_global_handles(TSRMLS_C);
298+
}
299+
300+
static void php_protocolbuffers_init_globals() {
301+
292302
}
293303

294304
PHP_MINIT_FUNCTION(protocolbuffers)
295305
{
306+
ZEND_INIT_MODULE_GLOBALS(protocolbuffers, php_protocolbuffers_init_globals, NULL);
296307
REGISTER_INI_ENTRIES();
297308

298309
php_protocolbuffers_init(TSRMLS_C);

0 commit comments

Comments
 (0)