You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ext/dba/tests/dba_gdbm.phpt: test failure due to key ordering #14786
So to me it looks like the insert order is not guaranteed to be the iteration order according to dba_firstkey() and dba_nextkey(). Since there are only six keys, I guess we could sort the output (in a locale-independent way) before printing it?
This might actually something that changed in the GDBM driver/lib? As I don't see why it would change randomly, I had consistent behaviour when I was actively refactoring this a while back
Activity
Girgias commentedon Jul 3, 2024
This might actually something that changed in the GDBM driver/lib? As I don't see why it would change randomly, I had consistent behaviour when I was actively refactoring this a while back
orlitzky commentedon Jul 3, 2024
It's possible but my first guess would be that it's on x86. The same version with the same build flags passes for me on amd64.
orlitzky commentedon Jul 4, 2024
The iteration order is apparently based on gdbm's internal hashes and FWIW gdbm's own test suite sorts the output, see e.g. https://git.savannah.gnu.org/cgit/gdbm.git/tree/tests/create00.at
The
gtdumputility is a little CLI program that usesfirstkey()andnextkey().Girgias commentedon Jul 6, 2024
Right, then adding a sort and referencing the upstream test makes sense.
ext/dba/tests/dba_*.phpt: sort expected test output
ext/dba/tests: sort expected test output (#14962)
dev-lang/php: add 8.3.22, drop 8.3.21
dev-lang/php: add 8.3.22
dev-lang/php: add 8.3.22
dev-lang/php: add 8.3.22
dev-lang/php: add 8.3.22