mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Make internal function names to be interned strings
This commit is contained in:
parent
e029042c36
commit
1e831439a5
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user