Skip to content

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Oct 5, 2025

Extract pgsql changes from #20066

Copy link
Member

@ndossche ndossche left a comment

Choose a reason for hiding this comment

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

No, see 0a3442f and a previous commit of me.

@Girgias
Copy link
Member Author

Girgias commented Oct 5, 2025

Blerg, really can't wait to get rid of this jank...

@Girgias Girgias force-pushed the pgsql-zpp-refacto branch from 8a745ec to 346df2d Compare October 5, 2025 12:18
@Girgias Girgias requested a review from ndossche October 5, 2025 12:22
@Girgias Girgias marked this pull request as ready for review October 5, 2025 14:16
@Girgias Girgias requested a review from devnexen as a code owner October 5, 2025 14:16
Copy link
Member

@ndossche ndossche left a comment

Choose a reason for hiding this comment

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

More readable indeed

Copy link
Member

@ndossche ndossche left a comment

Choose a reason for hiding this comment

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

LGTM but please see my question.
Also leaving final review for @devnexen as he has worked more on this code than I have.

zval dataset;
php_pgsql_fetch_hash(&dataset, result, row, row_is_null, PGSQL_ASSOC);

object_init_ex(return_value, ce);
Copy link
Member

Choose a reason for hiding this comment

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

This may be a pre-existing issue: but can't you make this object_init_ex call fail by providing an uninstantiable class (e.g. an interface, abstract class, ...). In that case, the code below may break.

Copy link
Member

Choose a reason for hiding this comment

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

that sounds possible and very much a bug fix to me.

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess first thing is to fix the bug, then rebase on top of it

@Girgias Girgias requested a review from ndossche November 4, 2025 00:32
@ndossche
Copy link
Member

ndossche commented Nov 4, 2025

Please rebase for the test failure to double check.

Copy link
Member

@ndossche ndossche left a comment

Choose a reason for hiding this comment

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

I think this is right

@Girgias Girgias merged commit 129f6e5 into php:master Nov 5, 2025
10 checks passed
@Girgias Girgias deleted the pgsql-zpp-refacto branch November 5, 2025 22:33
@iluuu1994
Copy link
Member

Is this the cause for this failure on Windows? https://github.com/php/php-src/actions/runs/19121938021/job/54644131975 It happens only on master, and happened in two Windows builds, so it doesn't look like random chance.

@Girgias
Copy link
Member Author

Girgias commented Nov 6, 2025

Yeah, I think I figured out the issue.

See #20407 for the fix

Girgias added a commit to Girgias/php-src that referenced this pull request Nov 6, 2025
Girgias added a commit to Girgias/php-src that referenced this pull request Nov 6, 2025
Girgias added a commit that referenced this pull request Nov 6, 2025
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.

4 participants