]> granicus.if.org Git - php/commitdiff
Make internal function names to be interned strings
authorDmitry Stogov <dmitry@zend.com>
Tue, 23 Sep 2014 08:35:16 +0000 (12:35 +0400)
committerDmitry Stogov <dmitry@zend.com>
Tue, 23 Sep 2014 08:35:16 +0000 (12:35 +0400)
ext/opcache/ZendAccelerator.c

index e210a462103d82d0a032de7ac29eb0f12cbda35a..b5c20f91e4755b5f51666a830c7f50e71bc10db6 100644 (file)
@@ -384,6 +384,9 @@ static void accel_use_shm_interned_strings(TSRMLS_D)
                if (p->key) {
                        p->key = accel_new_interned_string(p->key TSRMLS_CC);
                }
+               if (Z_FUNC(p->val)->common.function_name) {
+                       Z_FUNC(p->val)->common.function_name = accel_new_interned_string(Z_FUNC(p->val)->common.function_name TSRMLS_CC);
+               }
        }
 
        /* class table hash keys, class names, properties, methods, constants, etc */
@@ -425,6 +428,9 @@ static void accel_use_shm_interned_strings(TSRMLS_D)
                        if (q->key) {
                                q->key = accel_new_interned_string(q->key TSRMLS_CC);
                        }
+                       if (Z_FUNC(q->val)->common.function_name) {
+                               Z_FUNC(q->val)->common.function_name = accel_new_interned_string(Z_FUNC(q->val)->common.function_name TSRMLS_CC);
+                       }
                }
 
                for (j = 0; j < ce->constants_table.nNumUsed; j++) {