summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.stub.php
Commit message (Collapse)AuthorAgeFilesLines
* Generate class entries from stubs for oci8, odbc, openssl, pcntl, pdo, pgsqlMáté Kocsis2021-02-141-1/+1
| | | | Closes GH-6691
* Fix default value handling of mysqli_fetch_object()Máté Kocsis2020-10-201-1/+1
| | | | | | | Make [] acceptable both for classes without constructors and classes with a constructor that takes no arguments. Closes GH-6336.
* Verify parameter names of function aliasesMáté Kocsis2020-10-161-2/+2
| | | | Closes GH-6335
* Fix default value for some pgsql functionsNikita Popov2020-10-131-4/+4
| | | | These set the PGSQL_DML_EXEC flag by default.
* Don't accept null in pg_unescape_bytea()Nikita Popov2020-10-131-1/+1
| | | | | | | This is an error that slipped in via 8d37c37bcdbf6fa99cd275413342457eeb2c664e. pg_unescape_bytea() did not accept null in PHP 7.4, and it is not meaningful for it to accept null now -- it will always fail, and now with a misleading OOM message.
* Update ext/pgsql parameter namesNikita Popov2020-10-131-92/+92
| | | | Closes GH-6294.
* Return empty array for no rows in pg_fetch_all()Nikita Popov2020-09-211-1/+1
| | | | | This makes it line up with pg_fetch_all_columns(), as well as similar functions in other exts, such as mysqli_fetch_all().
* Promote invalid field to ValueError in pgsqlNikita Popov2020-09-211-8/+8
| | | | | | | | 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.
* pg_unescape_bytea() can only fail on OOMNikita Popov2020-09-211-1/+1
| | | | | | | | | | | The implementation did not check for PQunescapeBytea failure correctly, because it checked for a null pointer after estrndup, which certainly cannot happen. Inspection of the PGunescapeBytea implementation has shown that this function can only fail on OOM, so let's check for that explicitly and remove false as a possible return type. While we're here, avoid an unnecessary copy of the result.
* Deprecate pgsql function aliasesNikita Popov2020-09-211-0/+24
| | | | | These have been documentation-deprecated for a very long time, make it official.
* Fix a few UNKNOWN default values in ext/pgsqlMáté Kocsis2020-09-171-33/+33
| | | | Closes GH-6149
* Promote warnings to Errors in PostgreSQL extensionGeorge Peter Banyard2020-09-141-2/+2
| | | | | | | Do some drive by indentation fixes Also fix pg_select() in regards to the $result_type arg which was missing from ZPP Closes GH-6129
* Use string|int union types in pgsqlNikita Popov2020-09-111-19/+10
| | | | | | For "field name or field offset" parameters. Also make $ctor_params an ?array parameter.
* Use proper int type for parameterNikita Popov2020-09-091-8/+4
|
* Fix default valueNikita Popov2020-09-091-1/+1
|
* Add stub for pgsql extensionNikita Popov2020-09-091-0/+504