-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Segmentation fault in spl_array_it_get_current_data (PHP 8.1.18) #11178
Closed
Labels
Comments
Figured out what the issue is, here's a PoC. I'll look into fixing this now. <?php
class A implements IteratorAggregate {
function __construct() {
$this->{'x'} = 1;
}
function getIterator(): Traversable {
return new ArrayIterator($this);
}
}
$obj = new A;
foreach ($obj as $k => &$v) {
$v = 3;
var_dump($k, $v);
} |
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
May 2, 2023
…(PHP 8.1.18) Dynamic property case in zend_get_property_info() can return NULL for prop info. This was not handled.
nradchenko
changed the title
Segmentaion fault in spl_array_it_get_current_data (PHP 8.1.18)
Segmentation fault in spl_array_it_get_current_data (PHP 8.1.18)
May 2, 2023
nielsdos
added a commit
that referenced
this issue
May 3, 2023
nielsdos
added a commit
that referenced
this issue
May 3, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
No PoC at the moment. 8.1.15, 8.1.17, 8.0.28 work fine.
PHP Version
PHP 8.1.18
Operating System
No response
The text was updated successfully, but these errors were encountered: