]> granicus.if.org Git - php/commitdiff
changed return value from long to boolean for mysql_execute
authorGeorg Richter <georg@php.net>
Thu, 30 Oct 2003 12:35:16 +0000 (12:35 +0000)
committerGeorg Richter <georg@php.net>
Thu, 30 Oct 2003 12:35:16 +0000 (12:35 +0000)
ext/mysqli/mysqli_api.c

index 42695bee564f7d34f9325ad1e1d873acbe4759a9..c6a7c6ed6107b8f804429502263fbf94f8c3b61c 100644 (file)
@@ -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;
 }
 /* }}} */