summaryrefslogtreecommitdiff
path: root/Zend/zend_vm_def.h
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2011-12-22 03:22:42 +0000
committerStanislav Malyshev <stas@php.net>2011-12-22 03:22:42 +0000
commit327a5828cd8341846c4f4b7231124541f16660cd (patch)
tree91f6f7620cbd95e56df2ade7009595a60b30c917 /Zend/zend_vm_def.h
parentd1be77edfb72df9481dac662aca770f08c90ec92 (diff)
downloadphp-git-327a5828cd8341846c4f4b7231124541f16660cd.tar.gz
Fix warning on non-numeric offsets
Diffstat (limited to 'Zend/zend_vm_def.h')
-rw-r--r--Zend/zend_vm_def.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h
index 2c886bf24b..68e49ff670 100644
--- a/Zend/zend_vm_def.h
+++ b/Zend/zend_vm_def.h
@@ -4509,7 +4509,7 @@ ZEND_VM_C_LABEL(num_index_prop):
if (Z_TYPE_P(offset) != IS_LONG) {
if (Z_TYPE_P(offset) <= IS_BOOL /* simple scalar types */
|| (Z_TYPE_P(offset) == IS_STRING /* or numeric string */
- && IS_LONG == is_numeric_string(Z_STRVAL_P(offset), Z_STRLEN_P(offset), NULL, NULL, -1))) {
+ && IS_LONG == is_numeric_string(Z_STRVAL_P(offset), Z_STRLEN_P(offset), NULL, NULL, 0))) {
ZVAL_COPY_VALUE(&tmp, offset);
zval_copy_ctor(&tmp);
convert_to_long(&tmp);