php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12146 PHP warns if mysql have a special problem
Submitted: 2001-07-13 13:36 UTC Modified: 2001-10-23 14:20 UTC
From: alberty at neptunlabs dot de Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.0.6 OS: i686-pc-linux-gnu
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alberty at neptunlabs dot de
New email:
PHP Version: OS:

 

 [2001-07-13 13:36 UTC] alberty at neptunlabs dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-23 14:20 UTC] sander@php.net
Not a bug. Intended behaviour.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 17:01:30 2025 UTC