mirror of
https://github.com/php/php-src.git
synced 2025-08-20 17:34:35 +02:00
Link to spl iterator
This commit is contained in:
parent
d106560958
commit
78325e3f94
1 changed files with 2 additions and 2 deletions
|
@ -1016,7 +1016,7 @@ SPL_METHOD(Array, __construct)
|
||||||
spl_array_object *intern;
|
spl_array_object *intern;
|
||||||
zval **array;
|
zval **array;
|
||||||
long ar_flags = 0;
|
long ar_flags = 0;
|
||||||
zend_class_entry *ce_get_iterator = zend_ce_iterator;
|
zend_class_entry *ce_get_iterator = spl_ce_Iterator;
|
||||||
|
|
||||||
if (ZEND_NUM_ARGS() == 0) {
|
if (ZEND_NUM_ARGS() == 0) {
|
||||||
return; /* nothing to do */
|
return; /* nothing to do */
|
||||||
|
@ -1046,7 +1046,7 @@ SPL_METHOD(Array, setIteratorClass)
|
||||||
{
|
{
|
||||||
zval *object = getThis();
|
zval *object = getThis();
|
||||||
spl_array_object *intern = (spl_array_object*)zend_object_store_get_object(object TSRMLS_CC);
|
spl_array_object *intern = (spl_array_object*)zend_object_store_get_object(object TSRMLS_CC);
|
||||||
zend_class_entry *ce_get_iterator = zend_ce_iterator;
|
zend_class_entry *ce_get_iterator = spl_ce_Iterator;
|
||||||
|
|
||||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "C", &ce_get_iterator) == FAILURE) {
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "C", &ce_get_iterator) == FAILURE) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue