]> granicus.if.org Git - php/commitdiff
Only used in ZTS
authorXinchen Hui <laruence@php.net>
Sat, 21 Mar 2015 05:58:29 +0000 (13:58 +0800)
committerXinchen Hui <laruence@php.net>
Sat, 21 Mar 2015 05:58:29 +0000 (13:58 +0800)
ext/opcache/ZendAccelerator.c

index dc92bf7464cab52ee01d5f5b9587f32d285dba3c..72101014613a842bce7078265a21dd43005d9812 100644 (file)
@@ -267,10 +267,10 @@ static void accel_interned_strings_save_state(void)
 }
 #endif
 
+#ifndef ZTS
 static zend_string *accel_find_interned_string(zend_string *str)
 {
 /* for now interned strings are supported only for non-ZTS build */
-#ifndef ZTS
        zend_ulong h;
        uint nIndex;
        uint idx;
@@ -296,10 +296,10 @@ static zend_string *accel_find_interned_string(zend_string *str)
                }
                idx = Z_NEXT(p->val);
        }
-#endif
 
        return NULL;
 }
+#endif
 
 zend_string *accel_new_interned_string(zend_string *str)
 {