cvs: php-src /ext/mysqli mysqli_api.c
| From: | Georg Richter | Date: | Thu, 30 Oct 2003 12:35:16 +0000 |
| Subject: | cvs: php-src /ext/mysqli mysqli_api.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-24380@lists.php.net to get a copy of this message | ||
georg Thu Oct 30 07:35:16 2003 EDT
Modified files:
/php-src/ext/mysqli mysqli_api.c
Log:
changed return value from long to boolean for mysql_execute
Index: php-src/ext/mysqli/mysqli_api.c
diff -u php-src/ext/mysqli/mysqli_api.c:1.47 php-src/ext/mysqli/mysqli_api.c:1.48
--- php-src/ext/mysqli/mysqli_api.c:1.47 Wed Oct 29 15:48:47 2003
+++ php-src/ext/mysqli/mysqli_api.c Thu Oct 30 07:35:16 2003
@@ -15,7 +15,7 @@
| Author: Georg Richter <georg@php.net> |
+----------------------------------------------------------------------+
- $Id: mysqli_api.c,v 1.47 2003/10/29 20:48:47 georg Exp $
+ $Id: mysqli_api.c,v 1.48 2003/10/30 12:35:16 georg Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -641,7 +641,7 @@
}
/* }}} */
-/* {{{ proto int mysqli_execute(object stmt)
+/* {{{ proto bool mysqli_execute(object stmt)
Execute a prepared statement */
PHP_FUNCTION(mysqli_execute)
{
@@ -679,7 +679,10 @@
}
}
- RETURN_LONG(mysql_execute(stmt->stmt));
+ if (mysql_execute(stmt->stmt)) {
+ RETURN_FALSE;
+ }
+ RETURN_TRUE;
}
/* }}} */