As the name might suggest, this is a *filter* iterator. If you want
to have a *map* iterator, write one, or use a generator.
fci->retval = return_value;
fci->param_count = 3;
fci->params = params;
- fci->no_separation = 0;
+ fci->no_separation = 1;
if (zend_call_function(fci, fcc) != SUCCESS || Z_ISUNDEF_P(return_value)) {
RETURN_FALSE;
if (EG(exception)) {
RETURN_THROWS();
}
-
- /* zend_call_function may change args to IS_REF */
- ZVAL_COPY_VALUE(&intern->current.data, ¶ms[0]);
- ZVAL_COPY_VALUE(&intern->current.key, ¶ms[1]);
}
/* }}} */
$callbackTest->next();
print_r($data);
?>
---EXPECT--
+--EXPECTF--
+Warning: {closure}(): Argument #1 ($current) must be passed by reference, value given in %s on line %d
Array
(
[0] => 1
[1] => 2
- [message] => Test message
)