Skip to content

Commit f897c66

Browse files
committed
Try to fix ZTS related failure
1 parent e65deb7 commit f897c66

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ext/url/php_url.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,9 @@ PHP_MSHUTDOWN_FUNCTION(url)
386386

387387
PHP_RINIT_FUNCTION(url)
388388
{
389+
#if defined(COMPILE_DL_URL) && defined(ZTS)
390+
ZEND_TSRMLS_CACHE_UPDATE();
391+
#endif
389392
URL_G(parser) = init_parser();
390393
URL_G(urls) = 0;
391394

@@ -411,3 +414,10 @@ zend_module_entry url_module_entry = {
411414
PHP_VERSION, /* Version */
412415
STANDARD_MODULE_PROPERTIES
413416
};
417+
418+
#ifdef COMPILE_DL_URL
419+
#ifdef ZTS
420+
ZEND_TSRMLS_CACHE_DEFINE()
421+
#endif
422+
ZEND_GET_MODULE(url)
423+
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy