dmitry          Mon Feb 20 10:50:58 2006 UTC

  Modified files:              
    /php-src/ext/pdo    pdo_stmt.c 
  Log:
  Fixed wrong prototype and error message
  
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/pdo/pdo_stmt.c?r1=1.144&r2=1.145&diff_format=u
Index: php-src/ext/pdo/pdo_stmt.c
diff -u php-src/ext/pdo/pdo_stmt.c:1.144 php-src/ext/pdo/pdo_stmt.c:1.145
--- php-src/ext/pdo/pdo_stmt.c:1.144    Mon Feb 13 10:23:57 2006
+++ php-src/ext/pdo/pdo_stmt.c  Mon Feb 20 10:50:58 2006
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_stmt.c,v 1.144 2006/02/13 10:23:57 dmitry Exp $ */
+/* $Id: pdo_stmt.c,v 1.145 2006/02/20 10:50:58 dmitry Exp $ */
 
 /* The PDO Statement Handle Class */
 
@@ -2177,14 +2177,10 @@
        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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to