#
92f71d9d |
| 08-Feb-2021 |
Christoph M. Becker |
Merge branch 'PHP-7.4' into PHP-8.0 * PHP-7.4: Fix locale dependent parsing of PostgreSQL version number
|
#
03713ace |
| 05-Feb-2021 |
Christoph M. Becker |
Fix locale dependent parsing of PostgreSQL version number Version numbers are not supposed to be localized, so we must not apply locale dependent parsing with `atof()`. Using `p
Fix locale dependent parsing of PostgreSQL version number Version numbers are not supposed to be localized, so we must not apply locale dependent parsing with `atof()`. Using `php_version_compare()` might even be better. Closes GH-6668.
show more ...
|
#
3e01f5af |
| 15-Jan-2021 |
Nikita Popov |
Replace zend_bool uses with bool We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool
Replace zend_bool uses with bool We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
show more ...
|
#
422d1665 |
| 14-Jan-2021 |
Nikita Popov |
Make convert_to_*_ex simple aliases of convert_to_* Historically, the _ex variants separated the zval first, if a conversion was necessary. This distinction no longer makes sense sin
Make convert_to_*_ex simple aliases of convert_to_* Historically, the _ex variants separated the zval first, if a conversion was necessary. This distinction no longer makes sense since PHP 7. The only difference that was still left is that _ex checked whether the type is the same first, but the usage of these macros did not actually distinguish on whether such an inlined check is valuable or not in a given context. Also drop the unused convert_to_explicit_type macros.
show more ...
|
#
d5f92baa |
| 13-Oct-2020 |
Máté Kocsis |
Fix default value handling of mysqli_fetch_object() Make [] acceptable both for classes without constructors and classes with a constructor that takes no arguments. Closes GH-63
Fix default value handling of mysqli_fetch_object() Make [] acceptable both for classes without constructors and classes with a constructor that takes no arguments. Closes GH-6336.
show more ...
|
#
7b0f5f42 |
| 13-Oct-2020 |
Nikita Popov |
Don't accept null in pg_unescape_bytea() This is an error that slipped in via 8d37c37bcdbf6fa99cd275413342457eeb2c664e. pg_unescape_bytea() did not accept null in PHP 7.4, and it is not
Don't accept null in pg_unescape_bytea() 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.
show more ...
|
#
e0b17ba2 |
| 01-Oct-2020 |
George Peter Banyard |
Use a subrountine to check for valid OID strings Closes 6260 |
Revision tags: php-7.4.11, php-7.3.23 |
|
#
053a5fc1 |
| 28-Sep-2020 |
George Peter Banyard |
Promote E_NOTICE to Value/TypeError in PostgreSQL extension Add some tests to cover related codepaths. With the small caveat that the ones in build_assignment_string() still don't se
Promote E_NOTICE to Value/TypeError in PostgreSQL extension Add some tests to cover related codepaths. With the small caveat that the ones in build_assignment_string() still don't seem to be tested as it looks the condtions are checked beforehand, might need some more investigation. Closes GH-6226
show more ...
|
#
8ff2f2f8 |
| 21-Sep-2020 |
Nikita Popov |
Return empty array for no rows in pg_fetch_all() This makes it line up with pg_fetch_all_columns(), as well as similar functions in other exts, such as mysqli_fetch_all(). |
#
54f03d31 |
| 21-Sep-2020 |
Nikita Popov |
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.
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.
show more ...
|
#
68a90756 |
| 21-Sep-2020 |
Nikita Popov |
Remove redundant check This was already checked directly above. |
#
d1bbc39e |
| 21-Sep-2020 |
Nikita Popov |
pg_unescape_bytea() can only fail on OOM The implementation did not check for PQunescapeBytea failure correctly, because it checked for a null pointer after estrndup, which certainly
pg_unescape_bytea() can only fail on OOM 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.
show more ...
|
#
8d37c37b |
| 16-Sep-2020 |
Máté Kocsis |
Fix a few UNKNOWN default values in ext/pgsql Closes GH-6149 |
Revision tags: php-8.0.0beta4, php-7.4.11RC1, php-7.3.23RC1 |
|
#
d0111d78 |
| 13-Sep-2020 |
George Peter Banyard |
Promote warnings to Errors in PostgreSQL extension Do some drive by indentation fixes Also fix pg_select() in regards to the $result_type arg which was missing from ZPP Closes G
Promote warnings to Errors in PostgreSQL extension 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
show more ...
|
#
f29bfc0b |
| 11-Sep-2020 |
Nikita Popov |
Use string|int union types in pgsql For "field name or field offset" parameters. Also make $ctor_params an ?array parameter. |
#
68b21939 |
| 09-Sep-2020 |
Nikita Popov |
Use proper int type for parameter |
#
25d0e21d |
| 09-Sep-2020 |
Nikita Popov |
Use PGSQL_RETURN_OID() in more places |
#
47688ab6 |
| 09-Sep-2020 |
Nikita Popov |
Add stub for pgsql extension |
#
9a6c22da |
| 09-Sep-2020 |
Nikita Popov |
Remove deprecated pgsql signatures As the comment indicates, these are deprecated in PHP 4.2... |
#
8f415d44 |
| 09-Sep-2020 |
Nikita Popov |
Promote pgsql no link to Error exception |
#
3ab88831 |
| 09-Sep-2020 |
Nikita Popov |
Remove deprecated multi-parameter form of pg_connect() |
Revision tags: php-8.0.0beta3, php-7.4.10, php-7.3.22 |
|
#
1b2ec73c |
| 26-Aug-2020 |
George Peter Banyard |
Drop various unused macros/APIs Also convert_libmagic_pattern() to return a zend_string* Closes GH-6029 |
Revision tags: php-8.0.0beta2, php-7.3.22RC1, php-7.4.10RC1 |
|
#
396b4706 |
| 13-Aug-2020 |
Nikita Popov |
Use zpp C in pg_fetch_object |
Revision tags: php-8.0.0beta1, php-7.4.9, php-7.2.33, php-7.3.21, php-8.0.0alpha3, php-7.4.9RC1, php-7.3.21RC1, php-7.4.8, php-7.2.32, php-8.0.0alpha2, php-7.3.20, php-8.0.0alpha1, php-7.4.8RC1, php-7.3.20RC1, php-7.4.7, php-7.3.19, php-7.4.7RC1, php-7.3.19RC1, php-7.4.6, php-7.2.31, php-7.4.6RC1, php-7.3.18RC1, php-7.2.30, php-7.4.5, php-7.3.17 |
|
#
d92229d8 |
| 06-Apr-2020 |
Nikita Popov |
Implement named parameters From an engine perspective, named parameters mainly add three concepts: * The SEND_* opcodes now accept a CONST op2, which is the argument nam
Implement named parameters From an engine perspective, named parameters mainly add three concepts: * The SEND_* opcodes now accept a CONST op2, which is the argument name. For now, it is looked up by linear scan and runtime cached. * This may leave UNDEF arguments on the stack. To avoid having to deal with them in other places, a CHECK_UNDEF_ARGS opcode is used to either replace them with defaults, or error. * For variadic functions, EX(extra_named_params) are collected and need to be freed based on ZEND_CALL_HAS_EXTRA_NAMED_PARAMS. RFC: https://wiki.php.net/rfc/named_params Closes GH-5357.
show more ...
|
#
6ff31eeb |
| 17-Jul-2020 |
Nikita Popov |
Fix some pgsql arginfos And make sure too few/many arguments throws, to satisfy the function signature. |