xref: /php-src/ext/simplexml/tests/gh10200.phpt (revision df96346f)
1--TEST--
2GH-10200 (zif_get_object_vars: Assertion `!(((__ht)->u.flags & (1<<2)) != 0)' failed.)
3--EXTENSIONS--
4simplexml
5--FILE--
6<?php
7
8$xmlData = <<<EOF
9<?xml version="1.0" encoding="utf-8"?>
10<document>https://github.com/php/php-src/issues/10200 not encountered</document>
11EOF;
12
13$xml = simplexml_load_string($xmlData);
14$output = get_object_vars($xml);
15var_dump($output);
16
17?>
18--EXPECT--
19array(1) {
20  [0]=>
21  string(59) "https://github.com/php/php-src/issues/10200 not encountered"
22}
23