summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-11-10 23:41:55 +0800
committerXinchen Hui <laruence@php.net>2014-11-10 23:41:55 +0800
commit44bc735a62dcbfbd628d8721c2ee83491dcb073c (patch)
tree58f76ba2cfc11bb7c46ab4a58e485e2b85ae2b0e /Zend/zend_compile.c
parent28ee04f4804055f03b209ab6489c442ab5a49b00 (diff)
downloadphp-git-44bc735a62dcbfbd628d8721c2ee83491dcb073c.tar.gz
convert_to_string also does the check
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index d66ed5db35..ebbb005088 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -2985,9 +2985,7 @@ void zend_compile_global_var(zend_ast *ast TSRMLS_DC) /* {{{ */
zend_compile_expr(&name_node, name_ast TSRMLS_CC);
if (name_node.op_type == IS_CONST) {
- if (Z_TYPE(name_node.u.constant) != IS_STRING) {
- convert_to_string(&name_node.u.constant);
- }
+ convert_to_string(&name_node.u.constant);
}
if (zend_try_compile_cv(&result, var_ast TSRMLS_CC) == SUCCESS) {