Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
xmlreader /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
001.phpt
532
B
-rw-rw-r--
2022-10-31 11:36
002.phpt
778
B
-rw-rw-r--
2022-10-31 11:36
003-get-errors.phpt
2.21
KB
-rw-rw-r--
2022-10-31 11:36
003-mb.phpt
1.87
KB
-rw-rw-r--
2022-10-31 11:36
003-move-errors.phpt
2.16
KB
-rw-rw-r--
2022-10-31 11:36
003.phpt
2.09
KB
-rw-rw-r--
2022-10-31 11:36
004.phpt
982
B
-rw-rw-r--
2022-10-31 11:36
005.phpt
687
B
-rw-rw-r--
2022-10-31 11:36
006.phpt
689
B
-rw-rw-r--
2022-10-31 11:36
007.phpt
1.07
KB
-rw-rw-r--
2022-10-31 11:36
008.phpt
1.47
KB
-rw-rw-r--
2022-10-31 11:36
009.phpt
492
B
-rw-rw-r--
2022-10-31 11:36
010.phpt
536
B
-rw-rw-r--
2022-10-31 11:36
011.phpt
660
B
-rw-rw-r--
2022-10-31 11:36
012.dtd
62
B
-rw-rw-r--
2022-10-31 11:36
012.phpt
1.73
KB
-rw-rw-r--
2022-10-31 11:36
012.xml
85
B
-rw-rw-r--
2022-10-31 11:36
013.phpt
988
B
-rw-rw-r--
2022-10-31 11:36
013.xsd
337
B
-rw-rw-r--
2022-10-31 11:36
014.phpt
1.57
KB
-rw-rw-r--
2022-10-31 11:36
015-get-errors.phpt
1.5
KB
-rw-rw-r--
2022-10-31 11:36
015-move-errors.phpt
1.32
KB
-rw-rw-r--
2022-10-31 11:36
015.phpt
2.17
KB
-rw-rw-r--
2022-10-31 11:36
XMLReaderBad_bug71805.xml
1.03
KB
-rw-rw-r--
2022-10-31 11:36
XMLReaderGood_bug71805.xml
1020
B
-rw-rw-r--
2022-10-31 11:36
bug36743.phpt
429
B
-rw-rw-r--
2022-10-31 11:36
bug42139.phpt
530
B
-rw-rw-r--
2022-10-31 11:36
bug51936.phpt
471
B
-rw-rw-r--
2022-10-31 11:36
bug64230.phpt
983
B
-rw-rw-r--
2022-10-31 11:36
bug70309.phpt
1.46
KB
-rw-rw-r--
2022-10-31 11:36
bug71805.phpt
1.04
KB
-rw-rw-r--
2022-10-31 11:36
bug73053.phpt
550
B
-rw-rw-r--
2022-10-31 11:36
bug73053.xml
303
B
-rw-rw-r--
2022-10-31 11:36
bug73053.xsd
930
B
-rw-rw-r--
2022-10-31 11:36
bug73246.phpt
492
B
-rw-rw-r--
2022-10-31 11:36
bug74457.phpt
381
B
-rw-rw-r--
2022-10-31 11:36
dtdexample.dtd
251
B
-rw-rw-r--
2022-10-31 11:36
expand.phpt
902
B
-rw-rw-r--
2022-10-31 11:36
expand_error.phpt
737
B
-rw-rw-r--
2022-10-31 11:36
next_basic.phpt
960
B
-rw-rw-r--
2022-10-31 11:36
open_error.phpt
343
B
-rw-rw-r--
2022-10-31 11:36
readString_basic.phpt
370
B
-rw-rw-r--
2022-10-31 11:36
relaxNG.rng
272
B
-rw-rw-r--
2022-10-31 11:36
relaxNG2.rng
586
B
-rw-rw-r--
2022-10-31 11:36
relaxNG3.rng
373
B
-rw-rw-r--
2022-10-31 11:36
schema-empty.xsd
0
B
-rw-rw-r--
2022-10-31 11:36
setParserProperty_error.phpt
490
B
-rw-rw-r--
2022-10-31 11:36
setSchema_error.phpt
830
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- XMLReader: libxml2 XML Reader, Move cursor to a named attribute within a namespace, with invalid arguments --CREDITS-- Mark Baker mark@lange.demon.co.uk at the PHPNW2017 Conference for PHP Testfest 2017 --SKIPIF-- <?php if (!extension_loaded("xmlreader")) print "skip"; ?> --FILE-- <?php // Set up test data in a new file $xmlstring = '<?xml version="1.0" encoding="UTF-8"?> <books xmlns:ns1="http://www.ns1.namespace.org/" xmlns:ns2="http://www.ns2.namespace.org/"><book ns1:num="1" ns2:idx="2" ns1:idx="3" ns2:isbn="4">book1</book></books>'; $filename = __DIR__ . '/015-get-errors.xml'; file_put_contents($filename, $xmlstring); // Load test data into a new XML Reader $reader = new XMLReader(); if (!$reader->open($filename)) { exit('XML could not be read'); } // Parse the data while ($reader->read()) { if ($reader->nodeType != XMLREADER::END_ELEMENT) { // Find the book node if ($reader->nodeType == XMLREADER::ELEMENT && $reader->name == 'book') { $attr = $reader->moveToNextAttribute(); // Test for missing namespace argument $attr = $reader->getAttributeNs('idx', null); var_dump($attr); echo $reader->name . ": "; echo $reader->value . "\n"; } } } // clean up $reader->close(); ?> ===DONE=== --CLEAN-- <?php unlink(__DIR__.'/015-get-errors.xml'); ?> --EXPECTF-- Warning: XMLReader::getAttributeNs(): Attribute Name and Namespace URI cannot be empty in %s on line %d bool(false) ns1:num: 1 ===DONE===