|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52390 mysqli_report() should be per-request setting
Submitted: 2010-07-21 16:13 UTC Modified: 2010-08-13 12:44 UTC
From: Assigned: kalle (profile)
Status: Closed Package: MySQLi related
PHP Version: 5.3.2 OS: Irrelevant
Private report: No CVE-ID: None
 [2010-07-21 16:13 UTC]
The report_mode variable set by mysqli_report() should be initialized in request init instead of global init to achieve a consistent behavior.

Test script:
$mysqli = mysqli_connect();
mysqli_query($mysqli, "SEL");

Expected result:
No error message or exception.

Actual result:
Nothing, error message or exception depending on mysqli_report() set by previous request in the same process.


bug-52390 (last revision 2010-08-13 10:17 UTC by

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-13 12:17 UTC]
The following patch has been added/updated:

Patch Name: bug-52390
Revision:   1281694631
 [2010-08-13 12:18 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: kalle
 [2010-08-13 12:18 UTC]
Could you try the supplied patch that simply resets report_mode to 0 at every RINIT?

Patch is made off trunk but should apply to any branch
 [2010-08-13 12:43 UTC]
Automatic comment from SVN on behalf of kalle
Log: Changed mysqli_report() to be per-request specific rather than per-process specific (Fixes #52390)
 [2010-08-13 12:44 UTC]
-Status: Assigned +Status: Closed
 [2010-08-13 12:44 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

Fixed in PHP_5_2, PHP_5_3 & trunk
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 22 08:01:24 2023 UTC