1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00

- Fixed bug #50090 (Typo in IteratorIterator constructor)

This commit is contained in:
Felipe Pena
2009-11-07 21:27:15 +00:00
parent 25c7aed23e
commit 059e2c1901

View File

@@ -1382,7 +1382,7 @@ static spl_dual_it_object* spl_dual_it_construct(INTERNAL_FUNCTION_PARAMETERS, z
return NULL;
}
if (!retval || Z_TYPE_P(retval) != IS_OBJECT || !instanceof_function(Z_OBJCE_P(retval), zend_ce_traversable TSRMLS_CC)) {
zend_throw_exception_ex(spl_ce_LogicException, 0 TSRMLS_CC, "%v::getIterator() must return an object that implememnts Traversable", ce->name);
zend_throw_exception_ex(spl_ce_LogicException, 0 TSRMLS_CC, "%v::getIterator() must return an object that implements Traversable", ce->name);
zend_restore_error_handling(&error_handling TSRMLS_CC);
return NULL;
}