summaryrefslogtreecommitdiff
path: root/sapi/embed
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-03-14 03:01:01 +0300
committerDmitry Stogov <dmitry@zend.com>2019-03-14 03:01:01 +0300
commit9499484ed2f0377678b2b4d88573327ee0e4ce6d (patch)
tree2253189b70e711565902d2c372fe5d93ce111358 /sapi/embed
parenta1b7bc0c8148eaf728fccdffe147e3bc0c03f18e (diff)
downloadphp-git-9499484ed2f0377678b2b4d88573327ee0e4ce6d.tar.gz
Implemented a faster way to access predefined TSRM resources - CG(), EG(), etc.
Diffstat (limited to 'sapi/embed')
-rw-r--r--sapi/embed/php_embed.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sapi/embed/php_embed.c b/sapi/embed/php_embed.c
index 4221e6e0eb..4fcb181cc0 100644
--- a/sapi/embed/php_embed.c
+++ b/sapi/embed/php_embed.c
@@ -171,8 +171,7 @@ EMBED_SAPI_API int php_embed_init(int argc, char **argv)
#endif
#ifdef ZTS
- tsrm_startup(1, 1, 0, NULL);
- (void)ts_resource(0);
+ php_tsrm_startup();
# ifdef PHP_WIN32
ZEND_TSRMLS_CACHE_UPDATE();
# endif