Skip to content

Commit 1d7b0f3

Browse files
committed
Amend uninitialized error text
1 parent 0fd9afc commit 1d7b0f3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ext/sqlite3/sqlite3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ static void php_sqlite3_error(php_sqlite3_db_object *db_obj, char *format, ...)
6363

6464
#define SQLITE3_CHECK_INITIALIZED(db_obj, member, class_name) \
6565
if (!(db_obj) || !(member)) { \
66-
zend_throw_error(NULL, "The " #class_name " object has not been correctly initialised"); \
66+
zend_throw_error(NULL, "The " #class_name " object has not been correctly initialised or is already closed"); \
6767
RETURN_THROWS(); \
6868
}
6969

7070
#define SQLITE3_CHECK_INITIALIZED_STMT(member, class_name) \
7171
if (!(member)) { \
72-
zend_throw_error(NULL, "The " #class_name " object has not been correctly initialised"); \
72+
zend_throw_error(NULL, "The " #class_name " object has not been correctly initialised or is already closed"); \
7373
RETURN_THROWS(); \
7474
}
7575

ext/sqlite3/tests/bug66550.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ try {
2222
}
2323
?>
2424
--EXPECT--
25-
The SQLite3 object has not been correctly initialised
25+
The SQLite3 object has not been correctly initialised or is already closed

ext/sqlite3/tests/sqlite3_12_unfinalized_stmt_cleanup.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ array(2) {
5050
Closing database
5151
bool(true)
5252
Check db was closed
53-
The SQLite3Result object has not been correctly initialised
53+
The SQLite3Result object has not been correctly initialised or is already closed
5454
Done

0 commit comments

Comments
 (0)