diff options
author | Matt Wilmas <mattwil@php.net> | 2008-05-09 09:23:03 +0000 |
---|---|---|
committer | Matt Wilmas <mattwil@php.net> | 2008-05-09 09:23:03 +0000 |
commit | 805b6dd3b5f9ec3f4df3fb567965b5d44faea0f3 (patch) | |
tree | 717d8a421768a411695841f298aa1857f4774d21 /Zend/zend_execute.c | |
parent | 863d9751969891158b33476fb63e7f860dda87e1 (diff) | |
download | php-git-805b6dd3b5f9ec3f4df3fb567965b5d44faea0f3.tar.gz |
MFH: Fixed bug #44681 (Resources used as array keys get converted to 0)
Diffstat (limited to 'Zend/zend_execute.c')
-rw-r--r-- | Zend/zend_execute.c | 6 |
1 files 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); |