From 805b6dd3b5f9ec3f4df3fb567965b5d44faea0f3 Mon Sep 17 00:00:00 2001 From: Matt Wilmas Date: Fri, 9 May 2008 09:23:03 +0000 Subject: [PATCH] MFH: Fixed bug #44681 (Resources used as array keys get converted to 0) --- Zend/zend_execute.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 4f7efea1c9..6b498e4f2c 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -833,13 +833,13 @@ fetch_string_dim: } } break; - case IS_RESOURCE: - zend_error(E_STRICT, "Resource ID#%ld used as offset, casting to integer (%ld)", Z_LVAL_P(dim), Z_LVAL_P(dim)); - /* Fall Through */ case IS_DOUBLE: index = (long)Z_DVAL_P(dim); goto num_index; + case IS_RESOURCE: + zend_error(E_STRICT, "Resource ID#%ld used as offset, casting to integer (%ld)", Z_LVAL_P(dim), Z_LVAL_P(dim)); + /* Fall Through */ case IS_BOOL: case IS_LONG: index = Z_LVAL_P(dim); -- 2.50.1