|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75869 Lack of isolation on mysqli_driver->report_mode
Submitted: 2018-01-24 17:52 UTC Modified: -
From: xavier dot leune at gmail dot com Assigned:
Status: Open Package: MySQLi related
PHP Version: 7.2.1 OS: Ubuntu 17.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
45 - 11 = ?
Subscribe to this entry?

 [2018-01-24 17:52 UTC] xavier dot leune at gmail dot com
Hi there,

When changing the report_mode of an instance of mysqli_driver, all instances (already created or future instances) will share the same value of report_mode.

This can be very annoying when a 3rd party library enables the exceptions on mysqli, if some other 3rd party library makes the assumption that the report_mode is to it's default value.



Test script:

Expected result:
$tainted->report_mode: int(2)
$original->report_mode: int(0)

Actual result:
$tainted->report_mode: int(2)
$original->report_mode: int(2)


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Jan 25 18:01:24 2020 UTC