Bug #12146: PHP warns if mysql have a special problem
| From: | alberty at neptunlabs dot de | Date: | Fri, 13 Jul 2001 17:36:03 +0000 |
| Subject: | Bug #12146: PHP warns if mysql have a special problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-59985@lists.php.net to get a copy of this message | ||
From: alberty@neptunlabs.de
Operating system: i686-pc-linux-gnu
PHP version: 4.0.6
PHP Bug Type: MySQL related
Bug description: PHP warns if mysql have a special problem
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 bug report at: http://bugs.php.net/?id=12146&edit=1