[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.133.150.11: ~ $
<?PHP
/**
 * This shows that XML_Serializer is able to work with
 * empty arrays
 *
 * @author Stephan Schmidt <schst@php.net>
 */
error_reporting(E_ALL);
require_once 'XML/Serializer.php';

$data = array(
                array('name' => 'Superman', 'age' => 34, 'realname' => 'Clark Kent'),
                array('name' => 'Batman', 'age' => 32, 'realname' => 'Bruce Wayne'),
                'villain' => array('name' => 'Professor Zoom', 'age' => 'unknown', 'realname' => 'Hunter Zolomon')
            );

$serializer = new XML_Serializer();
$serializer->setOption(XML_SERIALIZER_OPTION_INDENT, '    ');
$serializer->setOption(XML_SERIALIZER_OPTION_DEFAULT_TAG, 'hero');

$serializer->serialize($data);
echo '<pre>';
echo "Default behaviour:\n";
echo htmlspecialchars($serializer->getSerializedData());
echo '</pre>';

$serializer->setOption(XML_SERIALIZER_OPTION_SCALAR_AS_ATTRIBUTES, true);

$serializer->serialize($data);
echo '<pre>';
echo "XML_SERIALIZER_OPTION_SCALAR_AS_ATTRIBUTES = true:\n";
echo htmlspecialchars($serializer->getSerializedData());
echo '</pre>';

$serializer->setOption(XML_SERIALIZER_OPTION_SCALAR_AS_ATTRIBUTES, array(
                                                                       'hero'    => array('name', 'age'),
                                                                       'villain' => array('realname')
                                                                       )
                      );

$serializer->serialize($data);
echo '<pre>';
echo "XML_SERIALIZER_OPTION_SCALAR_AS_ATTRIBUTES is an array:\n";
echo htmlspecialchars($serializer->getSerializedData());
echo '</pre>';
?>

Filemanager

Name Type Size Permission Actions
Serializer_Bug7112.php File 724 B 0644
example.xml File 82 B 0644
serializeAndEncode.php File 1.42 KB 0644
serializeAndReturn.php File 609 B 0644
serializeCData.php File 838 B 0644
serializeIndexedArray.php File 2.49 KB 0644
serializeIndexedArrayWithContext.php File 1.01 KB 0644
serializeNullProperties.php File 1.34 KB 0644
serializeObject.php File 1.29 KB 0644
serializeRDF.php File 3.02 KB 0644
serializeSelectiveAttributes.php File 1.6 KB 0644
serializeWithAttributes.php File 1.16 KB 0644
serializeWithAttributes2.php File 1.33 KB 0644
serializeWithComment.php File 974 B 0644
serializeWithDtd.php File 925 B 0644
serializeWithIndentedAttributes.php File 1.43 KB 0644
serializeWithNamespace.php File 1.05 KB 0644
serializeWithTagMap.php File 2.7 KB 0644
unserializeAnyXML.php File 2.55 KB 0644
unserializeClassNames.php File 1.19 KB 0644
unserializeEncoded.php File 949 B 0644
unserializeEnum.php File 1.16 KB 0644
unserializeObject.php File 1.44 KB 0644
unserializeRDF.php File 2.08 KB 0644
unserializeWhitespace.php File 1.09 KB 0644
unserializeWithAttributes.php File 796 B 0644
unserializeWithTagMap.php File 1.62 KB 0644
unserializeWithTypeGuessing.php File 950 B 0644