PageRenderTime 42ms CodeModel.GetById 14ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/zend/good/ext/simplexml/tests/bug46047.php

http://github.com/facebook/hiphop-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
  1. <?hh <<__EntryPoint>> function main(): void {
  2. $xml = new SimpleXMLElement('<foo><bar><![CDATA[]]></bar><baz/></foo>',
  3. LIBXML_NOCDATA);
  4. print_r($xml);
  5. $xml = new SimpleXMLElement('<foo><bar></bar><baz/></foo>');
  6. print_r($xml);
  7. $xml = new SimpleXMLElement('<foo><bar/><baz/></foo>');
  8. print_r($xml);
  9. echo "===DONE===\n";
  10. }