cvs: ZendEngine2 / zend_execute.c

From: Date: Mon, 30 Jun 2003 13:47:12 +0000
Subject: cvs: ZendEngine2 / zend_execute.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1406@lists.php.net to get a copy of this message
zeev Mon Jun 30 09:47:12 2003 EDT Modified files: /ZendEngine2 zend_execute.c Log: Fix 'global' implementation (fixes, at least, bug #24396 Index: ZendEngine2/zend_execute.c diff -u ZendEngine2/zend_execute.c:1.478 ZendEngine2/zend_execute.c:1.479 --- ZendEngine2/zend_execute.c:1.478 Mon Jun 23 18:14:38 2003 +++ ZendEngine2/zend_execute.c Mon Jun 30 09:47:12 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute.c,v 1.478 2003/06/23 22:14:38 zeev Exp $ */ +/* $Id: zend_execute.c,v 1.479 2003/06/30 13:47:12 zeev Exp $ */ #define ZEND_INTENSIVE_DEBUGGING 0 @@ -646,11 +646,6 @@ return EG(active_symbol_table); break; case ZEND_FETCH_GLOBAL: - /* Don't think this is actually needed. - if (opline->op1.op_type == IS_VAR) { - PZVAL_LOCK(varname); - } -+ */ return &EG(symbol_table); break; case ZEND_FETCH_STATIC: @@ -687,6 +682,9 @@ target_symbol_table = NULL; retval = zend_std_get_static_property(T(opline->op2.u.var).EA.class_entry, Z_STRVAL_P(varname), Z_STRLEN_P(varname), 0 TSRMLS_CC); } else { + if (opline->op2.u.EA.type == ZEND_FETCH_GLOBAL && opline->op1.op_type == IS_VAR) { + PZVAL_LOCK(varname); + } target_symbol_table = zend_get_target_symbol_table(opline, Ts, type, varname TSRMLS_CC); if (!target_symbol_table) { return;

« previous php.zend-engine.cvs (#1406) next »