[php-src] PR #11607: Fix replaced error handling in SQLite3Stmt::__construct
| From: | nielsdos | Date: | Thu, 06 Jul 2023 20:18:09 +0000 |
| Subject: | [php-src] PR #11607: Fix replaced error handling in SQLite3Stmt::__construct | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22915@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11607
Author: nielsdos
The error handling is replaced using zend_replace_error_handling(), but when
SQLITE3_CHECK_INITIALIZED() returns early, the old error handling isn't restored.
In the past, SQLITE3_CHECK_INITIALIZED() threw a warning when the check failed. This was replaced a
few years ago with an error exception. So we can fix the bug by just removing the replacing error
handling as it accomplishes nothing anymore.