cvs: ZendEngine2(PHP_5_0) / zend_execute.c

From: Date: Sun, 29 Aug 2004 19:15:57 +0000
Subject: cvs: ZendEngine2(PHP_5_0) / zend_execute.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2922@lists.php.net to get a copy of this message
helly Sun Aug 29 15:15:57 2004 EDT Modified files: (Branch: PHP_5_0) /ZendEngine2 zend_execute.c Log: MFH: String offset starts with 0 http://cvs.php.net/diff.php/ZendEngine2/zend_execute.c?r1=1.652.2.3&r2=1.652.2.4&ty=u Index: ZendEngine2/zend_execute.c diff -u ZendEngine2/zend_execute.c:1.652.2.3 ZendEngine2/zend_execute.c:1.652.2.4 --- ZendEngine2/zend_execute.c:1.652.2.3 Sun Aug 1 22:35:03 2004 +++ ZendEngine2/zend_execute.c Sun Aug 29 15:15:57 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute.c,v 1.652.2.3 2004/08/02 02:35:03 iliaa Exp $ */ +/* $Id: zend_execute.c,v 1.652.2.4 2004/08/29 19:15:57 helly Exp $ */ #define ZEND_INTENSIVE_DEBUGGING 0 @@ -4032,12 +4032,12 @@ } else if ((*container)->type == IS_STRING) { /* string offsets */ switch (opline->extended_value) { case ZEND_ISSET: - if (offset->value.lval <= Z_STRLEN_PP(container)) { + if (offset->value.lval < Z_STRLEN_PP(container)) { result = 1; } break; case ZEND_ISEMPTY: - if (offset->value.lval <= Z_STRLEN_PP(container) && Z_STRVAL_PP(container)[offset->value.lval] != '0') { + if (offset->value.lval < Z_STRLEN_PP(container) && Z_STRVAL_PP(container)[offset->value.lval] != '0') { result = 1; } break;

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