Skip to content

Fix GH-14687 segfault on debugging a freed SplObjectIterator instance. #14711

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

Closed
wants to merge 3 commits into from

Conversation

devnexen
Copy link
Member

No description provided.

@devnexen
Copy link
Member Author

devnexen commented Jun 29, 2024

Another route which can be taken is to not display the glob node if this makes no sense in this case.

@devnexen devnexen marked this pull request as ready for review June 29, 2024 09:44
@devnexen devnexen requested a review from Girgias as a code owner June 29, 2024 09:44
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.

Seems right but please check my comments

$s[$phar] = new HasDestructor();
register_shutdown_function(function() {
global $s;
});
Copy link
Member

Choose a reason for hiding this comment

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

Please close the test with ?>, this is necessary so we can run the test directly.

phar.readonly=0
--FILE--
<?php
$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip';
Copy link
Member

Choose a reason for hiding this comment

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

You're creating a file here, but have no clean section. Please add a clean section.

Copy link
Member

Choose a reason for hiding this comment

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

Also it's better to just hardcode the filename to __DIR__ . '/gh14687.phar.zip' because otherwise you can't use the same name in the clean section because the base name for the clean file contains the "clean" word.

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.

LGTM, thanks

@devnexen devnexen closed this in eeec093 Oct 28, 2024
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.

2 participants