mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.2'
* PHP-8.2: Fix replaced error handling in SQLite3Stmt::__construct
This commit is contained in:
commit
bb9fb3c59b
1 changed files with 0 additions and 3 deletions
|
@ -1839,7 +1839,6 @@ PHP_METHOD(SQLite3Stmt, __construct)
|
|||
zval *db_zval;
|
||||
zend_string *sql;
|
||||
int errcode;
|
||||
zend_error_handling error_handling;
|
||||
php_sqlite3_free_list *free_item;
|
||||
|
||||
stmt_obj = Z_SQLITE3_STMT_P(object);
|
||||
|
@ -1850,9 +1849,7 @@ PHP_METHOD(SQLite3Stmt, __construct)
|
|||
|
||||
db_obj = Z_SQLITE3_DB_P(db_zval);
|
||||
|
||||
zend_replace_error_handling(EH_THROW, NULL, &error_handling);
|
||||
SQLITE3_CHECK_INITIALIZED(db_obj, db_obj->initialised, SQLite3)
|
||||
zend_restore_error_handling(&error_handling);
|
||||
|
||||
if (!ZSTR_LEN(sql)) {
|
||||
RETURN_FALSE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue