cvs: ZendEngine2 / zend_execute.c

From: Date: Sun, 29 Aug 2004 19:15:09 +0000
Subject: cvs: ZendEngine2 / zend_execute.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2921@lists.php.net to get a copy of this message
helly Sun Aug 29 15:15:09 2004 EDT Modified files: /ZendEngine2 zend_execute.c Log: String offset starts with 0, fix isset($str[$len]) http://cvs.php.net/diff.php/ZendEngine2/zend_execute.c?r1=1.669&r2=1.670&ty=u Index: ZendEngine2/zend_execute.c diff -u ZendEngine2/zend_execute.c:1.669 ZendEngine2/zend_execute.c:1.670 --- ZendEngine2/zend_execute.c:1.669 Thu Aug 19 16:42:20 2004 +++ ZendEngine2/zend_execute.c Sun Aug 29 15:15:08 2004 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute.c,v 1.669 2004/08/19 20:42:20 andi Exp $ */ +/* $Id: zend_execute.c,v 1.670 2004/08/29 19:15:08 helly Exp $ */ #define ZEND_INTENSIVE_DEBUGGING 0 @@ -4410,12 +4410,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 (#2921) next »