-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix GH-16990 "dba_list() is now zero-indexed instead of using resourc… #17005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
b795a26
to
3dbcced
Compare
3dbcced
to
b3ae8ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MSTM, @alexandre-daubois can you confirm this fixes the issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly that std.handle
points to the resource id, it does! Thank you Máté!
Yes, basically that's the case (with the caveat that it's the object ID in fact, since the resource to object conversion) |
Small caveat: as far as I know, object IDs reusable (contrary to resource IDs). Might not matter in practice, though. |
Yes they are indeed, see: https://3v4l.org/brMEt |
ext/dba/tests/gh16990.phpt
Outdated
$handler = "flatfile"; | ||
require_once(__DIR__ .'/skipif.inc'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #17011 (comment) f.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok for me except the test thing that cmb pointed out
ext/dba/tests/gh16990.phpt
Outdated
$handler = "flatfile"; | ||
require_once(__DIR__ .'/skipif.inc'); | ||
require_once __DIR__ . '/setup/setup_dba_tests.inc'; | ||
check_skip('inifile'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Euh, flatfile or inifile? I suppose this needs to say flatfile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I managed to blindly copy-paste the SKIPIF snippet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How dare you! ;p
…e ids"