com php-src: Make internal function names to be interned strings: ext/opcache/ZendAccelerator.c
| From: | Dmitry Stogov | Date: | Tue, 23 Sep 2014 08:35:16 +0000 |
| Subject: | com php-src: Make internal function names to be interned strings: ext/opcache/ZendAccelerator.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81874@lists.php.net to get a copy of this message | ||
Commit: 1e831439a522615d41b18dc2ca54c67585740350
Author: Dmitry Stogov <dmitry@zend.com> Tue, 23 Sep 2014 12:35:16 +0400
Parents: e029042c36eab032a9e15e5af6699bb0163e0a4f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1e831439a522615d41b18dc2ca54c67585740350
Log:
Make internal function names to be interned strings
Changed paths:
M ext/opcache/ZendAccelerator.c
Diff:
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index e210a46..b5c20f9 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -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++) {