From 8f1f9b2f6d20a30949ca64b53f48831bb400be48 Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Thu, 30 Oct 2003 12:35:16 +0000 Subject: [PATCH] changed return value from long to boolean for mysql_execute --- ext/mysqli/mysqli_api.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } /* }}} */ -- 2.40.0