summaryrefslogtreecommitdiff
path: root/Zend/zend_iterators.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2010-04-20 11:16:39 +0000
committerDmitry Stogov <dmitry@php.net>2010-04-20 11:16:39 +0000
commit453b49ed20a0d68173cfbe740eb8a3068f62121a (patch)
tree64ce9137e1ca9d1aeddc1c4ad26a9da43e9617fa /Zend/zend_iterators.c
parent0bba0bfdc821a18599a5bc4a824ed8b025803c47 (diff)
downloadphp-git-453b49ed20a0d68173cfbe740eb8a3068f62121a.tar.gz
Added a number of small performance tweaks and optimizations
. ZEND_RECV now always has IS_CV as its result . ZEND_CATCH now has to be used only with constant class names . ZEND_FETCH_DIM_? may fetch array and dimension operans in a different order
Diffstat (limited to 'Zend/zend_iterators.c')
-rwxr-xr-xZend/zend_iterators.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_iterators.c b/Zend/zend_iterators.c
index 84b3638f0b..533cd5384a 100755
--- a/Zend/zend_iterators.c
+++ b/Zend/zend_iterators.c
@@ -82,13 +82,13 @@ ZEND_API enum zend_object_iterator_kind zend_iterator_unwrap(
*iter = (zend_object_iterator *)zend_object_store_get_object(array_ptr TSRMLS_CC);
return ZEND_ITER_OBJECT;
}
- if (HASH_OF(array_ptr)) {
+ if (Z_OBJPROP_P(array_ptr)) {
return ZEND_ITER_PLAIN_OBJECT;
}
return ZEND_ITER_INVALID;
case IS_ARRAY:
- if (HASH_OF(array_ptr)) {
+ if (Z_ARRVAL_P(array_ptr)) {
return ZEND_ITER_PLAIN_ARRAY;
}
return ZEND_ITER_INVALID;