[php-src] Issue #12598: mysqli report mode should be per connection instance
| From: | mvorisek | Date: | Thu, 02 Nov 2023 13:54:10 +0000 |
| Subject: | [php-src] Issue #12598: mysqli report mode should be per connection instance | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245722@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/12598
Author: mvorisek
### Description
Currently, the mysqli report mode is per shared driver class
mysqli_driver.
related with https://github.com/php/php-src/pull/12579#discussion_r1379779634
discussion
The motivation for this feature request is safety. Nowdays a lot of code rely on exceptions. And
this shared report config is dangerous, as one code may rely on exceptions beiing thrown (as of PHP
8.1 default) and another unrelated code may disable them.
The mysqli_driver class should be completely dropped then.