cvs: ZendEngine2 / zend_execute.c

From: Date: Sun, 17 Aug 2003 12:38:28 +0000
Subject: cvs: ZendEngine2 / zend_execute.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1640@lists.php.net to get a copy of this message
helly Sun Aug 17 08:38:28 2003 EDT Modified files: /ZendEngine2 zend_execute.c Log: Remove unnecessary if Index: ZendEngine2/zend_execute.c diff -u ZendEngine2/zend_execute.c:1.522 ZendEngine2/zend_execute.c:1.523 --- ZendEngine2/zend_execute.c:1.522 Sun Aug 17 08:27:33 2003 +++ ZendEngine2/zend_execute.c Sun Aug 17 08:38:27 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute.c,v 1.522 2003/08/17 12:27:33 helly Exp $ */ +/* $Id: zend_execute.c,v 1.523 2003/08/17 12:38:27 helly Exp $ */ #define ZEND_INTENSIVE_DEBUGGING 0 @@ -2480,15 +2480,12 @@ if (EX(function_state).function->type == ZEND_USER_FUNCTION || EX(function_state).function->common.scope) { should_change_scope = 1; - } else { - should_change_scope = 0; - } - - if (should_change_scope) { current_this = EG(This); EG(This) = EX(object); current_scope = EG(scope); EG(scope) = EX(calling_scope); + } else { + should_change_scope = 0; } if (EX(function_state).function->type == ZEND_INTERNAL_FUNCTION) {

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