summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-09-23 22:19:05 +0200
committerAnatol Belski <ab@php.net>2015-09-24 16:33:53 +0200
commit29bf529d88c8c7043107eb42424e7eb6728d516d (patch)
tree3b2ca078c898b51fbc7d44b2ce83134b07f4ec50
parent415000ed93c6811cbceae3344d76ec63dbd7fff3 (diff)
downloadphp-git-29bf529d88c8c7043107eb42424e7eb6728d516d.tar.gz
fix warning
-rw-r--r--Zend/zend_compile.c2
1 files changed, 1 insertions, 1 deletions
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];