Skip to content

Commit 6dcf56f

Browse files
committed
pdo_sqlite: remove zend_error usage
1 parent d90331d commit 6dcf56f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/pdo_sqlite/pdo_sqlite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ PHP_METHOD(Pdo_Sqlite, openBlob)
307307
sqlite_flags = (flags & SQLITE_OPEN_READWRITE) ? 1 : 0;
308308

309309
if (sqlite3_blob_open(sqlite_handle, dbname, table, column, rowid, sqlite_flags, &blob) != SQLITE_OK) {
310-
zend_error(E_WARNING, "Unable to open blob: %s", sqlite3_errmsg(sqlite_handle));
310+
php_error_docref(NULL, E_WARNING, "Unable to open blob: %s", sqlite3_errmsg(sqlite_handle));
311311
RETURN_FALSE;
312312
}
313313

0 commit comments

Comments
 (0)