diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-21 11:32:00 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-21 11:33:05 +0200 |
| commit | 7300f6fc17effef09b1254c1b060f4f7279e3af3 (patch) | |
| tree | 52561caf63631470f967992c49870f8c2078a942 /ext/pgsql/tests | |
| parent | 4591cb8a07ea17c9bfa824fd02d4d33b3cfa3403 (diff) | |
| download | php-git-7300f6fc17effef09b1254c1b060f4f7279e3af3.tar.gz | |
Deprecate pgsql function aliases
These have been documentation-deprecated for a very long time,
make it official.
Diffstat (limited to 'ext/pgsql/tests')
| -rw-r--r-- | ext/pgsql/tests/98old_api.phpt | 25 | ||||
| -rw-r--r-- | ext/pgsql/tests/lcmess.inc | 2 |
2 files changed, 25 insertions, 2 deletions
diff --git a/ext/pgsql/tests/98old_api.phpt b/ext/pgsql/tests/98old_api.phpt index b391097131..425753136a 100644 --- a/ext/pgsql/tests/98old_api.phpt +++ b/ext/pgsql/tests/98old_api.phpt @@ -29,5 +29,28 @@ pg_cmdtuples($result); echo "OK"; ?> ---EXPECT-- +--EXPECTF-- +Deprecated: Function pg_numrows() is deprecated in %s on line %d + +Deprecated: Function pg_numfields() is deprecated in %s on line %d + +Deprecated: Function pg_fieldname() is deprecated in %s on line %d + +Deprecated: Function pg_fieldsize() is deprecated in %s on line %d + +Deprecated: Function pg_fieldtype() is deprecated in %s on line %d + +Deprecated: Function pg_fieldprtlen() is deprecated in %s on line %d + +Deprecated: Function pg_fieldisnull() is deprecated in %s on line %d + +Deprecated: Function pg_result() is deprecated in %s on line %d + +Deprecated: Function pg_getlastoid() is deprecated in %s on line %d + +Deprecated: Function pg_freeresult() is deprecated in %s on line %d + +Deprecated: Function pg_errormessage() is deprecated in %s on line %d + +Deprecated: Function pg_cmdtuples() is deprecated in %s on line %d OK diff --git a/ext/pgsql/tests/lcmess.inc b/ext/pgsql/tests/lcmess.inc index 32ab0e36f5..8c21715477 100644 --- a/ext/pgsql/tests/lcmess.inc +++ b/ext/pgsql/tests/lcmess.inc @@ -9,7 +9,7 @@ function _skip_lc_messages($lc_messages = 'C') function _set_lc_messages($lc_messages = 'C') { - if (pg_result(pg_query("SHOW LC_MESSAGES"), 0, 0) != $lc_messages) { + if (pg_fetch_result(pg_query("SHOW LC_MESSAGES"), 0, 0) != $lc_messages) { if (!@pg_exec("SET LC_MESSAGES='{$lc_messages}'")) { return false; } |
