Bug #12146 Updated: PHP warns if mysql have a special problem

From: Date: Tue, 23 Oct 2001 18:20:36 +0000
Subject: Bug #12146 Updated: PHP warns if mysql have a special problem
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-68863@lists.php.net to get a copy of this message
ID: 12146 Updated by: sander Reported By: alberty@neptunlabs.de Old Status: Open Status: Bogus Bug Type: MySQL related Operating System: i686-pc-linux-gnu PHP Version: 4.0.6 New Comment: Not a bug. Intended behaviour. Previous Comments: ------------------------------------------------------------------------ [2001-07-13 13:36:03] alberty@neptunlabs.de Hi, the follow 'wrong' MySQL statement produce not only a MySQL error number, it also makes a php warning: "MySQL: Unable to save result set" <---snip---> error_reporting(63); $query="show table status from foo"; // instead of show table status from foo like 'bar' $result=mysql_query($query); if ($result==false) echo "<br>".mysql_errno().": ".mysql_error()."<BR>"; <---snap---> Regards, -- Steve ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12146&edit=1

« previous php.dev (#68863) next »