Skip to content

Conversation

devnexen
Copy link
Member

No description provided.

@devnexen devnexen marked this pull request as ready for review September 22, 2025 20:11
@devnexen devnexen requested a review from bukka as a code owner September 22, 2025 20:11
Copy link
Member

@nielsdos nielsdos left a comment

Choose a reason for hiding this comment

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

Quite interesting. This code was introduced in 9d348ea where it seems that __orig_path was a debug-only field. In that case the old code was likely right. At one point it became a field also outside of debug mode and the code became wrong.
This patch is right as _php_stream_free frees the orig_path field.

--EXTENSIONS--
zlib
--SKIPIF--
<?php
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem necessary. I think it's fine to remove this skipif.

@devnexen devnexen closed this in 93bac8c Sep 29, 2025
@bukka
Copy link
Member

bukka commented Oct 1, 2025

Just for the record I quickly double checked it and this is a correct fix. It's just a debug mode issue but it doesn't hurt to treat it as a normal bug.

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.

3 participants