You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version: 4.2.5
PHP: 8.0, 8.1 (does not happen on PHP 7)
Bug Description
MySqliDriver::getResource()throws an error in PHP 8 and is thus not suppressed by the @ operator.
Fatal error: Uncaught Error: mysqli object is already closed
The problem is when this happens during shutdown with EALL | E_STRICT setting, when the connection service is being destructed.
I'm sharing the resource and it happens to be closed before the driver is destructed.
Version: 4.2.5
PHP: 8.0, 8.1 (does not happen on PHP 7)
Bug Description
MySqliDriver::getResource()
throws an error in PHP 8 and is thus not suppressed by the@
operator.The problem is when this happens during shutdown with
EALL | E_STRICT
setting, when the connection service is being destructed.I'm sharing the resource and it happens to be closed before the driver is destructed.
Steps To Reproduce
Expected Behavior
I expect
null
to be returned instead of an internal error being thrown.Possible Solution
or
Let me know which alternative is better and I'll prepare a PR.
The text was updated successfully, but these errors were encountered: