xref: /PHP-8.4/ext/simplexml/tests/gh16808.phpt (revision fbb00619)
1--TEST--
2GH-16808 (Segmentation fault in RecursiveIteratorIterator->current() with a xml element input)
3--EXTENSIONS--
4simplexml
5--FILE--
6<?php
7$sxe = new SimpleXMLElement("<root />");
8$test = new RecursiveIteratorIterator($sxe);
9var_dump($test->current());
10?>
11--EXPECT--
12NULL
13