Skip to content

Internal iterator functions can't handle UNDEF properties #16905

Closed
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
$dom = Dom\HTMLDocument::createFromString("<p>foo</p>", LIBXML_NOERROR);
$child = $dom->documentElement->appendChild($dom->createElement('html'));
$fusion = $child;
var_dump(reset($fusion));

Resulted in this output (JIT 1205):

/php-src/main/spprintf.c:376:14: runtime error: member access within null pointer of type 'zend_string' (aka 'struct _zend_string')

PHP Version

nightly

Operating System

ubuntu 22.04

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions