Skip to content

Commit bb9fb3c

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Fix replaced error handling in SQLite3Stmt::__construct
2 parents d397fec + ca661f2 commit bb9fb3c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ext/sqlite3/sqlite3.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,6 @@ PHP_METHOD(SQLite3Stmt, __construct)
18391839
zval *db_zval;
18401840
zend_string *sql;
18411841
int errcode;
1842-
zend_error_handling error_handling;
18431842
php_sqlite3_free_list *free_item;
18441843

18451844
stmt_obj = Z_SQLITE3_STMT_P(object);
@@ -1850,9 +1849,7 @@ PHP_METHOD(SQLite3Stmt, __construct)
18501849

18511850
db_obj = Z_SQLITE3_DB_P(db_zval);
18521851

1853-
zend_replace_error_handling(EH_THROW, NULL, &error_handling);
18541852
SQLITE3_CHECK_INITIALIZED(db_obj, db_obj->initialised, SQLite3)
1855-
zend_restore_error_handling(&error_handling);
18561853

18571854
if (!ZSTR_LEN(sql)) {
18581855
RETURN_FALSE;

0 commit comments

Comments
 (0)