Skip to content

Segmentation fault in RecursiveIteratorIterator->current() with a xml element input #16808

Closed
@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?php
$sx1 = new SimpleXMLElement("<root />");
$fusion = $sx1;
$test = new RecursiveIteratorIterator($fusion);
var_dump($test->current());

Resulted in this output:

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

To reproduce: JIT 1015

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