summaryrefslogtreecommitdiff
path: root/ext/spl/spl_array.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-02-11 16:14:12 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-02-11 16:14:12 +0100
commitf0b387d1e42a5d7e9f5ebda1bec428fc0e7374be (patch)
treed8b5a9d5553929526de7df1c4e840888942088cb /ext/spl/spl_array.c
parent1106ff9a0e420e043c2e56c8ca00db85f1b85ee6 (diff)
parent226395a335c2783085a49d5a8559807a3b14e72f (diff)
downloadphp-git-f0b387d1e42a5d7e9f5ebda1bec428fc0e7374be.tar.gz
Merge branch 'PHP-8.0'
* PHP-8.0: Fixed bug #80719
Diffstat (limited to 'ext/spl/spl_array.c')
-rw-r--r--ext/spl/spl_array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c
index 880c3c67db..e01259a30e 100644
--- a/ext/spl/spl_array.c
+++ b/ext/spl/spl_array.c
@@ -1133,7 +1133,7 @@ PHP_METHOD(ArrayObject, __construct)
spl_array_object *intern;
zval *array;
zend_long ar_flags = 0;
- zend_class_entry *ce_get_iterator = spl_ce_Iterator;
+ zend_class_entry *ce_get_iterator = spl_ce_ArrayIterator;
if (ZEND_NUM_ARGS() == 0) {
return; /* nothing to do */
@@ -1184,7 +1184,7 @@ PHP_METHOD(ArrayObject, setIteratorClass)
{
zval *object = ZEND_THIS;
spl_array_object *intern = Z_SPLARRAY_P(object);
- zend_class_entry * ce_get_iterator = spl_ce_Iterator;
+ zend_class_entry *ce_get_iterator = spl_ce_ArrayIterator;
ZEND_PARSE_PARAMETERS_START(1, 1)
Z_PARAM_CLASS(ce_get_iterator)