diff --git a/ext/url/php_url.c b/ext/url/php_url.c index baf045fcbb9bf..653504c742a3c 100644 --- a/ext/url/php_url.c +++ b/ext/url/php_url.c @@ -386,6 +386,9 @@ PHP_MSHUTDOWN_FUNCTION(url) PHP_RINIT_FUNCTION(url) { +#if defined(COMPILE_DL_URL) && defined(ZTS) + ZEND_TSRMLS_CACHE_UPDATE(); +#endif URL_G(parser) = init_parser(); URL_G(urls) = 0; @@ -411,3 +414,10 @@ zend_module_entry url_module_entry = { PHP_VERSION, /* Version */ STANDARD_MODULE_PROPERTIES }; + +#ifdef COMPILE_DL_URL +#ifdef ZTS +ZEND_TSRMLS_CACHE_DEFINE() +#endif +ZEND_GET_MODULE(url) +#endif