From: Anatol Belski Date: Wed, 23 Sep 2015 20:19:05 +0000 (+0200) Subject: fix warning X-Git-Tag: php-7.0.0RC4~4^2~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29bf529d88c8c7043107eb42424e7eb6728d516d;p=php fix warning --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 2e98f10c6a..8e9f5414dd 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];