Skip to content

Commit 97ac261

Browse files
bohwazGirgias
authored andcommitted
Don't test for exception_ce registered
1 parent f35c6d4 commit 97ac261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/sqlite3/sqlite3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ static void php_sqlite3_error(php_sqlite3_db_object *db_obj, int errcode, const
8181
vspprintf(&message, 0, format, arg);
8282
va_end(arg);
8383

84-
if (db_obj && db_obj->exception && php_sqlite3_exception_ce) {
84+
if (db_obj && db_obj->exception) {
8585
zend_throw_exception(php_sqlite3_exception_ce, message, errcode);
8686
} else {
8787
php_error_docref(NULL, E_WARNING, "%s", message);

0 commit comments

Comments
 (0)