/hphp/test/zend/good/ext/simplexml/tests/bug46047.php
PHP | 12 lines | 10 code | 2 blank | 0 comment | 0 complexity | 0c309f71ec38bade3e93ad67e2e180e3 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh <<__EntryPoint>> function main(): void {
- $xml = new SimpleXMLElement('<foo><bar><![CDATA[]]></bar><baz/></foo>',
- LIBXML_NOCDATA);
- print_r($xml);
- $xml = new SimpleXMLElement('<foo><bar></bar><baz/></foo>');
- print_r($xml);
- $xml = new SimpleXMLElement('<foo><bar/><baz/></foo>');
- print_r($xml);
- echo "===DONE===\n";
- }