georg           Tue Jul 13 12:12:30 2004 EDT

  Modified files:              
    /php-src/ext/mysqli mysqli_api.c 
  Log:
  changed mysqli_stmt_reset (returns now bool instead of void)
  
  
http://cvs.php.net/diff.php/php-src/ext/mysqli/mysqli_api.c?r1=1.85&r2=1.86&ty=u
Index: php-src/ext/mysqli/mysqli_api.c
diff -u php-src/ext/mysqli/mysqli_api.c:1.85 php-src/ext/mysqli/mysqli_api.c:1.86
--- php-src/ext/mysqli/mysqli_api.c:1.85        Wed Jul  7 04:02:27 2004
+++ php-src/ext/mysqli/mysqli_api.c     Tue Jul 13 12:12:28 2004
@@ -15,7 +15,7 @@
   | Author: Georg Richter <[EMAIL PROTECTED]>                                |
   +----------------------------------------------------------------------+
 
-  $Id: mysqli_api.c,v 1.85 2004/07/07 08:02:27 georg Exp $ 
+  $Id: mysqli_api.c,v 1.86 2004/07/13 16:12:28 georg Exp $ 
 */
 
 #ifdef HAVE_CONFIG_H
@@ -1580,7 +1580,7 @@
 }
 /* }}} */
 
-/* {{{ proto void mysqli_stmt_reset(object stmt)
+/* {{{ proto bool mysqli_stmt_reset(object stmt)
    reset a prepared statement */
 PHP_FUNCTION(mysqli_stmt_reset) 
 {
@@ -1593,9 +1593,10 @@
 
        MYSQLI_FETCH_RESOURCE(stmt, MY_STMT *, &mysql_stmt, "mysqli_stmt");
 
-       mysql_stmt_reset(stmt->stmt);
-
-       return;
+       if (mysql_stmt_reset(stmt->stmt)) {
+               RETURN_FALSE;
+       }
+       RETURN_TRUE;
 }
 /* }}} */
 

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

Reply via email to