/PHP-7.4/ext/xml/tests/ |
H A D | skipif.inc | 3 //if (!extension_loaded("xml")) { 5 // @dl("xml$dlext"); 7 if (!extension_loaded("xml")) { 8 die('skip xml extension not available');
|
H A D | bug70962.phpt | 5 if (!extension_loaded('xml')) die('skip xml extension not available'); 9 function parseAndOutput($xml) 14 xml_parse_into_struct($parser, $xml, $values); 19 $xml = "<a><b><d>\n <e></b><![CDATA[ ]]><c>\n \t</c></a>"; 21 $parsed = parseAndOutput($xml);
|
H A D | bug73135.phpt | 4 <?php if (!extension_loaded('xml')) die('skip xml extension not loaded'); ?> 9 function start_elem($parser, $xml) { 10 xml_parse($parser, $xml); 13 $xml = <<<HERE 21 xml_parse($parser, $xml);
|
H A D | bug71592.phpt | 5 if (!extension_loaded('xml')) die('skip xml extension not available'); 11 $xml = <<<XML 12 <?xml version="1.0" encoding="UTF-8"?> 26 xml_parse($parser, $xml);
|
/PHP-7.4/ext/simplexml/tests/ |
H A D | bug41582.phpt | 8 $xml = new SimpleXMLElement('<?xml version="1.0" standalone="yes"?> 11 $xml->movie[]->characters->character[0]->name = 'Miss Coder'; 13 echo($xml->asXml()); 18 <?xml version="1.0" standalone="yes"?>
|
H A D | bug67572.phpt | 13 $xml = simplexml_load_string("<xml><something>somevalue</something></xml>"); 14 $xml2 = simplexml_load_string("<xml>\n<something>somevalue</something>\n</xml>"); 16 foreach($xml as $key => $value) {
|
H A D | 017.phpt | 7 $xml =<<<EOF 27 function print_xml($xml) { 28 foreach($xml->children() as $person) { 36 function print_xml2($xml) { 37 for ($i=0;$i<count($xml->person);$i++) { 38 $person = $xml->person[$i]; 47 print_xml(simplexml_load_string($xml)); 51 print_xml2(simplexml_load_string($xml));
|
H A D | bug62328.phpt | 13 $xml = new UberSimpleXML('<xml/>'); 15 var_dump((string) $xml); 16 var_dump($xml->__toString());
|
H A D | bug43221.phpt | 7 $xml = simplexml_load_string('<?xml version="1.0" encoding="utf-8"?><root />'); 8 $n = $xml->addChild("node", "value"); 12 print_r($xml->asXml()); 17 <?xml version="1.0" encoding="utf-8"?>
|
H A D | bug41947.phpt | 7 $xml = simplexml_load_string('<?xml version="1.0" encoding="utf-8"?><root xmlns:myns="http://myns" … 8 $grandchild = $xml->addChild('child', null, 'http://myns')->addChild('grandchild', 'hello', ''); 10 $gchild = $xml->xpath("//grandchild");
|
H A D | 012.phpt | 10 $xml =<<<EOF 11 <?xml version="1.0" encoding="ISO-8859-1" ?> 15 $sxe = simplexml_load_string($xml); 34 <?xml version="1.0" encoding="ISO-8859-1"?> 36 <?xml version="1.0" encoding="ISO-8859-1"?>
|
H A D | 025.phpt | 8 $xml =<<<EOF 9 <?xml version='1.0'?> 19 $sxe = simplexml_load_string($xml); 26 $xml =<<<EOF 27 <?xml version='1.0'?> 33 $sxe = simplexml_load_string($xml); 38 $xml =<<<EOF 39 <?xml version='1.0'?> 43 $sxe = simplexml_load_string($xml);
|
/PHP-7.4/ext/xmlreader/tests/ |
H A D | bug73053.phpt | 10 $xmlfile = __DIR__ . DIRECTORY_SEPARATOR . 'bug73053.xml'; 13 $xml = new XMLReader(); 14 var_dump($xml->open($xmlfile, null, LIBXML_PARSEHUGE)); 15 $xml->setSchema($xsdfile); 16 while($xml->read());
|
H A D | 013.phpt | 9 $xml =<<<EOF 10 <?xml version="1.0" encoding="UTF-8" ?> 18 $reader->XML($xml); 32 $xml =<<<EOF 33 <?xml version="1.0" encoding="UTF-8" ?> 38 $reader->XML($xml);
|
H A D | bug71805.phpt | 8 TestXML(__DIR__ . DIRECTORY_SEPARATOR . 'XMLReaderGood_bug71805.xml'); 9 TestXML(__DIR__ . DIRECTORY_SEPARATOR . 'XMLReaderBad_bug71805.xml'); 18 $xml = $XR->readOuterXML(); 19 if ($xml === '') { 37 %sXMLReaderGood_bug71805.xml : Good! 38 %sXMLReaderBad_bug71805.xml : Good!
|
H A D | readString_basic.phpt | 8 $xml = '<?xml version="1.0" encoding="UTF-8"?><books><book>Book1</book><book>Book2</book></books>'; 11 $reader->xml($xml);
|
/PHP-7.4/ext/phar/tests/cache_list/files/ |
H A D | blog.phar.inc | 7 $phar->setStub('<?php if(file_exists(dirname(__FILE__) . "/files/config.xml")) { 8 Phar::mount("config.xml", dirname(__FILE__) . "/files/config.xml"); 12 $phar['index.php'] = '<?php if (!file_exists("config.xml")) { 16 var_dump(file_get_contents("config.xml"));
|
/PHP-7.4/ext/libxml/tests/ |
H A D | libxml_disable_entity_loader.phpt | 12 $xml = <<<EOT 13 <?xml version="1.0" encoding="UTF-8"?> 19 $xml = str_replace('XXE_URI', $dir . '/libxml_disable_entity_loader_payload.txt', $xml); 21 function parseXML($xml) { 26 $doc->loadXML($xml, 0); 30 var_dump(strpos(parseXML($xml), 'SECRET_DATA') !== false); 32 var_dump(strpos(parseXML($xml), 'SECRET_DATA') === false);
|
/PHP-7.4/ext/phar/tests/files/ |
H A D | blog.phar.inc | 9 if(file_exists(dirname(__FILE__) . "/files/config.xml")) { 10 Phar::mount("config.xml", dirname(__FILE__) . "/files/config.xml"); 14 $phar['index.php'] = '<?php if (!file_exists("config.xml")) { 18 var_dump(str_replace("\r\n", "\n", file_get_contents("config.xml")));
|
/PHP-7.4/ext/xml/ |
H A D | config.m4 | 1 PHP_ARG_ENABLE([xml], 3 [AS_HELP_STRING([--disable-xml], 27 PHP_ADD_EXTENSION_DEP(xml, libxml) 33 …PHP_NEW_EXTENSION(xml, xml.c $xml_extra_sources, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) 35 PHP_INSTALL_HEADERS([ext/xml/])
|
/PHP-7.4/ext/dom/tests/ |
H A D | dom_xinclude.phpt | 12 $data = file_get_contents(__DIR__."/xinclude.xml"); 28 <?xml version="1.0"?> 30 <book xml:base="compress.zlib://%sbook.xml"> 33 </book><book xml:base="compress.zlib://%sbook.xml">
|
H A D | bug54601.phpt | 7 $xml = <<< XML 8 <?xml version='1.0' encoding='utf-8' ?> 9 <!DOCTYPE set PUBLIC "-//OASIS//DTD DocBook XML V5.0//EN" "http://www.docbook.org/xml/5.0/dtd/docbo… 17 $doc->loadXML($xml, LIBXML_NOENT); 27 <?xml version="1.0" encoding="utf-8"?>
|
/PHP-7.4/Zend/tests/ |
H A D | bug34199.phpt | 7 $xml = "<root></root>"; 8 $xml = simplexml_load_string($xml); 9 $kids = $xml->children();
|
/PHP-7.4/ext/xmlrpc/tests/ |
H A D | bug40576_64bit.phpt | 23 string(125) "<?xml version="1.0" encoding="utf-8"?> 32 string(119) "<?xml version="1.0" encoding="utf-8"?> 41 string(116) "<?xml version="1.0" encoding="utf-8"?> 50 string(106) "<?xml version="1.0" encoding="utf-8"?> 59 string(118) "<?xml version="1.0" encoding="utf-8"?> 68 string(139) "<?xml version="1.0" encoding="utf-8"?>
|
H A D | bug40576.phpt | 23 string(125) "<?xml version="1.0" encoding="utf-8"?> 32 string(130) "<?xml version="1.0" encoding="utf-8"?> 41 string(116) "<?xml version="1.0" encoding="utf-8"?> 50 string(106) "<?xml version="1.0" encoding="utf-8"?> 59 string(118) "<?xml version="1.0" encoding="utf-8"?> 68 string(139) "<?xml version="1.0" encoding="utf-8"?>
|