File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ static zend_object *pgsql_link_create_object(zend_class_entry *class_type) {
154154}
155155
156156static 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
212212static 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
250250static 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
Original file line number Diff line number Diff line change @@ -31,6 +31,6 @@ pg_query($conn, "ROLLBACK");
3131pg_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
3535int(%d)
3636int(%d)
You can’t perform that action at this time.
0 commit comments