From: Dmitry Stogov Date: Mon, 20 Feb 2006 10:50:58 +0000 (+0000) Subject: Fixed wrong prototype and error message X-Git-Tag: RELEASE_1_2~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb0f2051c4c0f263d4644ba6ed2de1020fc0feb3;p=php Fixed wrong prototype and error message --- diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 73c33d77f0..8c590ccc19 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -2177,14 +2177,10 @@ static int pdo_stmt_iter_valid(zend_object_iterator *iter TSRMLS_DC) return I->fetch_ahead ? SUCCESS : FAILURE; } -static void pdo_stmt_iter_get_data(zend_object_iterator *iter, zval ***data, int by_ref TSRMLS_DC) +static void pdo_stmt_iter_get_data(zend_object_iterator *iter, zval ***data TSRMLS_DC) { struct php_pdo_iterator *I = (struct php_pdo_iterator*)iter->data; - if (by_ref) { - zend_error(E_ERROR, "An iterator cannot be used with foreach by reference"); - } - /* sanity */ if (!I->fetch_ahead) { *data = NULL;