]> granicus.if.org Git - php/commitdiff
Fix auto globals
authorZeev Suraski <zeev@php.net>
Wed, 5 Mar 2003 21:36:30 +0000 (21:36 +0000)
committerZeev Suraski <zeev@php.net>
Wed, 5 Mar 2003 21:36:30 +0000 (21:36 +0000)
Zend/zend_compile.c

index 5dc8e1a87f639bd96c29ace079ae9e7cc0e7f437..644f8561f62836e866f565d6248e30357f555044 100644 (file)
@@ -284,7 +284,7 @@ void fetch_simple_variable_ex(znode *result, znode *varname, int bp, zend_uchar
 
        opline_ptr->op2.u.EA.type = ZEND_FETCH_LOCAL;
        if (varname->op_type == IS_CONST && varname->u.constant.type == IS_STRING) {
-               if (zend_is_auto_global(varname->u.constant.value.str.val, varname->u.constant.value.str.len+1 TSRMLS_CC)) {
+               if (zend_is_auto_global(varname->u.constant.value.str.val, varname->u.constant.value.str.len TSRMLS_CC)) {
                        opline_ptr->op2.u.EA.type = ZEND_FETCH_GLOBAL;
                } else {
 /*                     if (CG(active_op_array)->static_variables && zend_hash_exists(CG(active_op_array)->static_variables, varname->u.constant.value.str.val, varname->u.constant.value.str.len+1)) {