Commit 824d1f9
committed
Fix replaced error handling in SQLite3Stmt::__construct
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.
Closes GH-11607.1 parent 0aaad46 commit 824d1f9
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1820 | 1820 | | |
1821 | 1821 | | |
1822 | 1822 | | |
1823 | | - | |
1824 | 1823 | | |
1825 | 1824 | | |
1826 | 1825 | | |
| |||
1831 | 1830 | | |
1832 | 1831 | | |
1833 | 1832 | | |
1834 | | - | |
1835 | 1833 | | |
1836 | | - | |
1837 | 1834 | | |
1838 | 1835 | | |
1839 | 1836 | | |
| |||
0 commit comments