diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2016-05-12 13:47:22 +0300 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2016-05-12 13:47:22 +0300 |
| commit | 7b94b958ccbc87595d688d178f96daf96a9f54b3 (patch) | |
| tree | f74f2fdf78a194c86fa7d34f27e0cf8f1e2d8ec0 /Zend/zend_compile.c | |
| parent | 00390449c6c5d3cb65e129cb558b9e523e17090f (diff) | |
| download | php-git-7b94b958ccbc87595d688d178f96daf96a9f54b3.tar.gz | |
Intern some known (and offten used) strings.
Diffstat (limited to 'Zend/zend_compile.c')
| -rw-r--r-- | Zend/zend_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 50bcb3b7ad..b4cb05f616 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2544,7 +2544,7 @@ static zend_op *zend_compile_simple_var_no_cv(znode *result, zend_ast *ast, uint if (ast->kind != ZEND_AST_ZVAL && CG(active_op_array)->scope && CG(active_op_array)->this_var == (uint32_t)-1 ) { - zend_string *key = zend_string_init("this", sizeof("this") - 1, 0); + zend_string *key = CG(known_strings)[ZEND_STR_THIS]; CG(active_op_array)->this_var = lookup_cv(CG(active_op_array), key); } } |
