php-src/ext/pgsql
Michael Orlitzky 44b0baf705
ext/dba/tests: sort expected test output (#14962)
* ext/dba/tests/setup/setup_dba_tests.inc: sort test output

Iterating through a database with firstkey() and nextkey() is
guaranteed to retrieve all rows, but apparently not in any particular
order. This is causing a test failure for at least one user, so we
steal the sort() approach from GDBM to ensure that the output is
predictable.

* ext/dba/tests/dba_*.phpt: sort expected test output

The actual output is now sorted for consistency, so we need to update
the expected output as well. As a nice side effect, some differences
in the expected outputs for the various engines have been eliminated.

Closes GH-14786

* ext/pgsql/tests/80_bug14383.phpt: sort expected test output

This test uses a routine from ext/dba that now sorts its (actual)
output, so we have to sort the expected output here as well.

* ext/dba/tests/setup/setup_dba_tests.inc: update comment

After doing some more digging, it looks like GDBM isn't the only
engine where the iteration order with firstkey() and nextkey()
might change unexpectedly.
2024-07-26 01:16:52 +01:00
..
tests ext/dba/tests: sort expected test output (#14962) 2024-07-26 01:16:52 +01:00
config.m4 Bump minimum libpq version to 10.0 (#14628) 2024-06-25 20:50:04 +02:00
config.w32 Bump minimum libpq version to 10.0 (#14628) 2024-06-25 20:50:04 +02:00
CREDITS
pgsql.c ext/pgsql: pg_convert/pg_insert/pg_update/pg_delete caching regexes. 2024-07-20 23:04:48 +01:00
pgsql.stub.php Replace @deprecated by #[\Deprecated] for internal functions / class constants (#14750) 2024-07-10 16:47:31 +02:00
pgsql_arginfo.h Replace @deprecated by #[\Deprecated] for internal functions / class constants (#14750) 2024-07-10 16:47:31 +02:00
php_pgsql.h ext/pgsql: pg_convert/pg_insert/pg_update/pg_delete caching regexes. 2024-07-20 23:04:48 +01:00