Skip to content

Commit 4acde1a

Browse files
committed
Fix test and error messages
1 parent 4dc7c81 commit 4acde1a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/pgsql/pgsql.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ static zend_object *pgsql_link_create_object(zend_class_entry *class_type) {
154154
}
155155

156156
static zend_function *pgsql_link_get_constructor(zend_object *object) {
157-
zend_throw_error(NULL, "Cannot directly construct PgSql, use pg_connect() or pg_pconnect() instead");
157+
zend_throw_error(NULL, "Cannot directly construct PgSql\\Connection, use pg_connect() or pg_pconnect() instead");
158158
return NULL;
159159
}
160160

@@ -210,7 +210,7 @@ static zend_object *pgsql_result_create_object(zend_class_entry *class_type) {
210210
}
211211

212212
static zend_function *pgsql_result_get_constructor(zend_object *object) {
213-
zend_throw_error(NULL, "Cannot directly construct PgSqlResult, use a dedicated function instead");
213+
zend_throw_error(NULL, "Cannot directly construct PgSql\\Result, use a dedicated function instead");
214214
return NULL;
215215
}
216216

@@ -248,7 +248,7 @@ static zend_object *pgsql_lob_create_object(zend_class_entry *class_type) {
248248
}
249249

250250
static zend_function *pgsql_lob_get_constructor(zend_object *object) {
251-
zend_throw_error(NULL, "Cannot directly construct PgSqlLob, use pg_lo_open() instead");
251+
zend_throw_error(NULL, "Cannot directly construct PgSql\\Lob, use pg_lo_open() instead");
252252
return NULL;
253253
}
254254

ext/pgsql/tests/bug72197.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ pg_query($conn, "ROLLBACK");
3131
pg_close($conn);
3232
?>
3333
--EXPECTF--
34-
pg_lo_create(): Argument #1 ($connection) must be of type PgSql when the connection is provided
34+
pg_lo_create(): Argument #1 ($connection) must be of type PgSql when the connection is provided%w
3535
int(%d)
3636
int(%d)

0 commit comments

Comments
 (0)