com php-src: fix warning: Zend/zend_compile.c

From: Date: Thu, 24 Sep 2015 14:33:53 +0000
Subject: com php-src: fix warning: Zend/zend_compile.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89164@lists.php.net to get a copy of this message
Commit: 29bf529d88c8c7043107eb42424e7eb6728d516d Author: Anatol Belski <ab@php.net> Wed, 23 Sep 2015 22:19:05 +0200 Parents: 415000ed93c6811cbceae3344d76ec63dbd7fff3 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=29bf529d88c8c7043107eb42424e7eb6728d516d Log: fix warning Changed paths: M Zend/zend_compile.c Diff: diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 2e98f10..8e9f541 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -7422,7 +7422,7 @@ void zend_eval_const_expr(zend_ast **ast_ptr) /* {{{ */ } else if (Z_TYPE_P(dim) != IS_STRING || is_numeric_string(Z_STRVAL_P(dim), Z_STRLEN_P(dim), &offset, NULL, 1) != IS_LONG) { return; } - if (offset < 0 || offset >= Z_STRLEN_P(container)) { + if (offset < 0 || (size_t)offset >= Z_STRLEN_P(container)) { return; } c = (zend_uchar) Z_STRVAL_P(container)[offset];

« previous php.cvs (#89164) next »