From: Georg Richter Date: Thu, 30 Oct 2003 12:35:16 +0000 (+0000) Subject: changed return value from long to boolean for mysql_execute X-Git-Tag: php-5.0.0b3RC1~831 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f1f9b2f6d20a30949ca64b53f48831bb400be48;p=php changed return value from long to boolean for mysql_execute --- diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index 42695bee56..c6a7c6ed61 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -641,7 +641,7 @@ PHP_FUNCTION(mysqli_error) } /* }}} */ -/* {{{ proto int mysqli_execute(object stmt) +/* {{{ proto bool mysqli_execute(object stmt) Execute a prepared statement */ PHP_FUNCTION(mysqli_execute) { @@ -679,7 +679,10 @@ PHP_FUNCTION(mysqli_execute) } } - RETURN_LONG(mysql_execute(stmt->stmt)); + if (mysql_execute(stmt->stmt)) { + RETURN_FALSE; + } + RETURN_TRUE; } /* }}} */