Workaround to https://bugs.php.net/78465 diff -up ./gmagick.c.78465 ./gmagick.c --- ./gmagick.c.78465 2015-04-24 12:33:06.000000000 +0200 +++ ./gmagick.c 2020-02-19 18:14:58.513454328 +0100 @@ -1278,6 +1278,13 @@ PHP_MINFO_FUNCTION(gmagick) php_info_print_table_end(); } +/* {{{ PHP_MINFO_FUNCTION(gmagick) +*/ +PHP_RINIT_FUNCTION(gmagick) +{ + MagickSetResourceLimit(ThreadsResource, 1); +} + /* {{{ zend_module_entry gmagick_module_entry */ zend_module_entry gmagick_module_entry = @@ -1287,7 +1294,7 @@ zend_module_entry gmagick_module_entry = php_gmagick_functions, /* Functions */ PHP_MINIT(gmagick), /* MINIT */ PHP_MSHUTDOWN(gmagick), /* MSHUTDOWN */ - NULL, /* RINIT */ + PHP_RINIT(gmagick), /* RINIT */ NULL, /* RSHUTDOWN */ PHP_MINFO(gmagick), /* MINFO */ PHP_GMAGICK_VERSION, /* Version */