-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Internal iterator functions can't handle UNDEF properties #16905
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
Comments
Similar issue to that simplexml bug most likely. <?php
$dom = new DOMDocument;
$child = $dom->appendChild($dom->createElement('html'));
var_dump(reset($child)); |
Actually, it's more broad than only DOM. However, the following fails too: class X {
public int $a;
}
$x = new X;
var_dump(reset($x));
var_dump(current($x));
var_dump(end($x)); |
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
Nov 23, 2024
nielsdos
added a commit
that referenced
this issue
Nov 28, 2024
* PHP-8.2: Fix GH-16905: Internal iterator functions can't handle UNDEF properties
nielsdos
added a commit
that referenced
this issue
Nov 28, 2024
* PHP-8.3: Fix GH-16905: Internal iterator functions can't handle UNDEF properties
nielsdos
added a commit
that referenced
this issue
Nov 28, 2024
* PHP-8.4: Fix GH-16905: Internal iterator functions can't handle UNDEF properties
charmitro
pushed a commit
to wasix-org/php
that referenced
this issue
Mar 13, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The following code:
Resulted in this output (JIT 1205):
PHP Version
nightly
Operating System
ubuntu 22.04
The text was updated successfully, but these errors were encountered: