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 <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $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; } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php