]> granicus.if.org Git - php/commit
Promote invalid field to ValueError in pgsql
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 21 Sep 2020 14:11:50 +0000 (16:11 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 21 Sep 2020 15:00:23 +0000 (17:00 +0200)
commit54f03d31e07450defb230367a65d58cd42e80b1d
tree8aa21bfaf263353cf151b84be792a1ea161f8b8f
parent68a907569c0d0406ad6e11017ccbe98ecc1f1405
Promote invalid field to ValueError in pgsql

The same error condition is a ValueError in mysqli, be consistent.

Additionally, do not display the argument name for these errors.
As the signatures are overloaded, the argument name may not match
the meaning at all.
ext/opcache/Optimizer/zend_func_info.c
ext/pgsql/pgsql.c
ext/pgsql/pgsql.stub.php
ext/pgsql/pgsql_arginfo.h
ext/pgsql/tests/03sync_query.phpt