]> granicus.if.org Git - php/commitdiff
limit virtual_cwd_activate() duplicated call to ZTS only
authorAnatol Belski <ab@php.net>
Sat, 2 Nov 2013 12:32:31 +0000 (13:32 +0100)
committerAnatol Belski <ab@php.net>
Sat, 2 Nov 2013 12:32:31 +0000 (13:32 +0100)
Zend/zend.c

index b98d264a3c050ec66870b6aa1f0c77bdc0594c20..a5ed953cd0de057176e011d69bb5ba7a84ab30d4 100644 (file)
@@ -921,7 +921,9 @@ ZEND_API char *get_zend_version(void) /* {{{ */
 
 void zend_activate(TSRMLS_D) /* {{{ */
 {
+#ifdef ZTS
        virtual_cwd_activate(TSRMLS_C);
+#endif
        gc_reset(TSRMLS_C);
        init_compiler(TSRMLS_C);
        init_executor(TSRMLS_C);