Skip to content

Commit

Permalink
Try to fix ZTS related failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Jun 7, 2024
1 parent e65deb7 commit f897c66
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ext/url/php_url.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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

0 comments on commit f897c66

Please sign in to comment.