Skip to content

Fix GH-16990 "dba_list() is now zero-indexed instead of using resourc… - #17005

Closed
kocsismate wants to merge 3 commits into
php:masterfrom
kocsismate:dba_list-bug
Closed

kocsismate wants to merge 3 commits into
php:masterfrom
kocsismate:dba_list-bug

Conversation

@kocsismate

Copy link
Copy Markdown
Member

…e ids"

@kocsismate
kocsismate force-pushed the dba_list-bug branch 3 times, most recently from b795a26 to 3dbcced Compare November 30, 2024 22:24
@kocsismate
kocsismate marked this pull request as ready for review November 30, 2024 22:24
@kocsismate
kocsismate requested a review from Girgias as a code owner November 30, 2024 22:24

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

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?

@alexandre-daubois alexandre-daubois left a comment •

Copy link
Copy Markdown
Member

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é!

@kocsismate
kocsismate requested a review from ndossche December 2, 2024 08:50
@kocsismate

Copy link
Copy Markdown
Member Author

If I understand correctly that std.handle points to the resource id, it does!

Yes, basically that's the case (with the caveat that it's the object ID in fact, since the resource to object conversion)

@cmb69

cmb69 commented Dec 2, 2024

Copy link
Copy Markdown
Member

Small caveat: as far as I know, object IDs reusable (contrary to resource IDs). Might not matter in practice, though.

@Girgias

Girgias commented Dec 2, 2024

Copy link
Copy Markdown
Member

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

Comment thread ext/dba/tests/gh16990.phpt Outdated
Comment on lines +9 to +10
$handler = "flatfile";
require_once(__DIR__ .'/skipif.inc');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

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!

@ndossche ndossche left a comment

Copy link
Copy Markdown
Member

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

Comment thread ext/dba/tests/gh16990.phpt Outdated
$handler = "flatfile";
require_once(__DIR__ .'/skipif.inc');
require_once __DIR__ . '/setup/setup_dba_tests.inc';
check_skip('inifile');

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Member Author

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How dare you! ;p

Comment thread ext/dba/tests/gh16990.phpt Resolved
@kocsismate kocsismate closed this in 50264b0 Dec 2, 2024
@kocsismate
kocsismate deleted the dba_list-bug branch December 2, 2024 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants