Skip to content

Conversation

@degtyaryov
Copy link
Contributor

No description provided.

@devnexen
Copy link
Member

Nice. Would you be able to add/modify a test please ?

@devnexen
Copy link
Member

devnexen commented Nov 24, 2023

as far as I know, the fix ought to apply from master


$conn = pg_connect($conn_str);

pg_untrace($conn);
Copy link
Member

Choose a reason for hiding this comment

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

file being named 'gh12763.phpt' should be good enough. I would like to see a bit more than this, involving pg_trace at least.

@devnexen
Copy link
Member

devnexen commented Nov 24, 2023

Couple of things :

  • your test seems to fail on windows.
  • I suggest when you open a PR to create a distinct branch from the target branch.
  • PHP-8.3.0 is definitively not the proper branch.

@Girgias
Copy link
Member

Girgias commented Nov 27, 2023

Why is 8.3 not the proper branch?

@devnexen
Copy link
Member

Why is 8.3 not the proper branch?

8.3.0

@kocsismate
Copy link
Member

Sorry, I pushed approve a bit too early. The PR should target the PHP-8.2 branch, shouldn't it?

@devnexen
Copy link
Member

Sorry, I pushed approve a bit too early. The PR should target the PHP-8.2 branch, shouldn't it?

Not PHP-8.3.0 for sure but I hesitate to consider it as fix rather than change of behavior, e.g. his test fails on windows.

@kocsismate
Copy link
Member

Not PHP-8.3.0 for sure but I hesitate to consider it as fix rather than change of behavior, e.g. his test fails on windows.

It's definitely a fix for a serious bug which I introduced in PHP 8.1 when I converted the resource to object. I don't really know what the trace file contains exactly, but I guess the test failure happens because of some diff between UNIX vs Windows, not due to the change itself.

@devnexen
Copy link
Member

oh I see ... then let's target lower branches.

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