#39774 [Opn->Bgs]: mysqli_query does not report warning message
| From: | tony2001@php.net | Date: | Fri, 08 Dec 2006 09:17:52 +0000 |
| Subject: | #39774 [Opn->Bgs]: mysqli_query does not report warning message | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-106083@lists.php.net to get a copy of this message | ||
ID: 39774
Updated by: tony2001@php.net
Reported By: ecstasy2000 at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: MySQLi related
Operating System: Win32 / XP SP2
PHP Version: 5.2.0
New Comment:
Expected behaviour.
This function returns TRUE on success or FALSE on failure.
Previous Comments:
------------------------------------------------------------------------
[2006-12-08 00:08:06] ecstasy2000 at gmail dot com
Description:
------------
mysqli_query function does not fail with a warning message when invalid
queries are sent.
Reproduce code:
---------------
error_reporting(E_ALL);
$link = mysqli_connect("localhost", "andrei.tudor", "babardeala",
"test");
$result = mysqli_query($link, "SELECT * FROM Groupss");
Expected result:
----------------
I use that query but in my database there is no table called "Groupss".
So there should be a warning message shown on my screen even if i don't
call mysqli_error() function.
Actual result:
--------------
There is no warning message.
This happens for any wrong query string.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39774&edit=1