CHips L MINI SHELL

CHips L pro

Current Path : /opt/cpanel/ea-php54/root/usr/share/tests/pear/XML_Serializer/tests/
Upload File :
Current File : //opt/cpanel/ea-php54/root/usr/share/tests/pear/XML_Serializer/tests/bug-12139.phpt

--TEST--
XML Serializer - test for Bug #12139:  XML_Parser read '#' in data as Invalid document end
--FILE--
<?php
require_once 'XML/Unserializer.php';

$xml = <<<EOF
<stdClass>
  <foo>Some text with #sign in it</foo>
</stdClass>
EOF;

$unserializer = new XML_Unserializer();
$status = $unserializer->unserialize($xml);
if (PEAR::isError($status)) {
    echo $status->getMessage();
}
$plan = $unserializer->getUnserializedData();
var_dump($plan);
?>
--EXPECT--
array(1) {
  ["foo"]=>
  string(26) "Some text with #sign in it"
}


Copyright 2K16 - 2K18 Indonesian Hacker Rulez