#
fabcfd6d |
| 22-Mar-2021 |
George Peter Banyard |
Formalize return type to zend_result for PGSQL_API functions |
#
6eb23e2b |
| 22-Mar-2021 |
George Peter Banyard |
ValueError if lengths is less than 0 |
#
13693aaf |
| 22-Mar-2021 |
George Peter Banyard |
Use ZEND_ASSERT() instead of plain assert() |
#
6569aede |
| 22-Mar-2021 |
George Peter Banyard |
Use ZEND_NUM_ARGS() explicitly |
#
a5fb43f2 |
| 22-Mar-2021 |
George Peter Banyard |
Boolify _php_pgsql_link_has_results() |
#
8ae99223 |
| 22-Mar-2021 |
George Peter Banyard |
Boolify _php_pgsql_detect_identifier_escape() and rename it New name is _php_pgsql_identifier_is_escaped() |
#
0c571185 |
| 13-Apr-2021 |
Nikita Popov |
Add zend_ulong_to_str() API No point in going through a smart_str and append_unsigned if we can construct the result directly... |
#
09efad61 |
| 08-Apr-2021 |
George Peter Banyard |
Use zend_string_equals_(literal_)ci() API more often Also drive-by usage of zend_ini_parse_bool() Closes GH-6844 |
Revision tags: php-8.0.1, php-7.4.14, php-7.3.26, php-7.4.14RC1, php-8.0.1RC1, php-7.3.26RC1, php-8.0.0, php-7.3.25, php-7.4.13, php-8.0.0RC5, php-7.4.13RC1, php-8.0.0RC4, php-7.3.25RC1, php-7.4.12, php-8.0.0RC3, php-7.3.24, php-8.0.0RC2, php-7.4.12RC1, php-7.3.24RC1, php-7.2.34, php-8.0.0rc1 |
|
#
5caaf40b |
| 29-Sep-2020 |
George Peter Banyard |
Introduce pseudo-keyword ZEND_FALLTHROUGH And use it instead of comments |
#
48ac3881 |
| 17-Mar-2021 |
George Peter Banyard |
Use zend_string_equals() API instead of strcmp() in PGSQL extension And tiny drive by refactor at the same time for more usages |
#
882b418a |
| 08-Feb-2021 |
Christoph M. Becker |
Merge branch 'PHP-8.0' * PHP-8.0: Fix locale dependent parsing of PostgreSQL version number
|
#
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 ...
|