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
If mysqli type is used and mysqli extension is not loaded, connection ErrorNo method is called but it is overriden by mysqli ErrorNo method which calls mysqli extension functions. It ends with process kill with no exception.
The text was updated successfully, but these errors were encountered:
When connecting to a database using mysqli driver and the corresponding
PHP extension is extension is not loaded, ADOdb dies with exit code 255
signaling a fatal error. This is due to ADODB_mysqli::ErrorNo() calling
mysqli_connect_errno() with the '@' operator, suppressing the 'Call to
undefined function' fatal error.
When not using adodb-exceptions, setting `$db->debug=true;` causes ADOdb
to print message 'Missing extension for mysql', but this is not the case
when exceptions are used.
To fix the problem, we only call the ErrorNo() method when the result of
_connect() is set, and otherwise pass arbitrary error number 0 with the
missing extension message to the exception handler.
Fixes#254
If mysqli type is used and mysqli extension is not loaded, connection ErrorNo method is called but it is overriden by mysqli ErrorNo method which calls mysqli extension functions. It ends with process kill with no exception.
The text was updated successfully, but these errors were encountered: