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.112
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 /
xml /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
bug25666.phpt
865
B
-rw-rw-r--
2022-10-31 11:36
bug26528.phpt
576
B
-rw-rw-r--
2022-10-31 11:36
bug26614.phpt
2.18
KB
-rw-rw-r--
2022-10-31 11:36
bug26614_libxml.phpt
2.19
KB
-rw-rw-r--
2022-10-31 11:36
bug27908.phpt
421
B
-rw-rw-r--
2022-10-31 11:36
bug30266.phpt
933
B
-rw-rw-r--
2022-10-31 11:36
bug30875.phpt
683
B
-rw-rw-r--
2022-10-31 11:36
bug32001.phpt
11.93
KB
-rw-rw-r--
2022-10-31 11:36
bug32001b.phpt
5.21
KB
-rw-rw-r--
2022-10-31 11:36
bug35447.phpt
1.12
KB
-rw-rw-r--
2022-10-31 11:36
bug46699.phpt
845
B
-rw-rw-r--
2022-10-31 11:36
bug50576.phpt
2.39
KB
-rw-rw-r--
2022-10-31 11:36
bug65236.phpt
324
B
-rw-rw-r--
2022-10-31 11:36
bug70962.phpt
844
B
-rw-rw-r--
2022-10-31 11:36
bug71592.phpt
760
B
-rw-rw-r--
2022-10-31 11:36
bug72085.phpt
2.44
KB
-rw-rw-r--
2022-10-31 11:36
bug72099.phpt
294
B
-rw-rw-r--
2022-10-31 11:36
bug72714.phpt
836
B
-rw-rw-r--
2022-10-31 11:36
bug73135.phpt
870
B
-rw-rw-r--
2022-10-31 11:36
bug79922.phpt
396
B
-rw-rw-r--
2022-10-31 11:36
bug81351.phpt
1.04
KB
-rw-rw-r--
2022-10-31 11:36
inc.ent
65
B
-rw-rw-r--
2022-10-31 11:36
skipif.inc
237
B
-rw-rw-r--
2022-10-31 11:36
xml001.phpt
2.55
KB
-rw-rw-r--
2022-10-31 11:36
xml002.phpt
2.7
KB
-rw-rw-r--
2022-10-31 11:36
xml003.phpt
2.66
KB
-rw-rw-r--
2022-10-31 11:36
xml004.phpt
1.08
KB
-rw-rw-r--
2022-10-31 11:36
xml007.phpt
948
B
-rw-rw-r--
2022-10-31 11:36
xml009.phpt
861
B
-rw-rw-r--
2022-10-31 11:36
xml010.phpt
923
B
-rw-rw-r--
2022-10-31 11:36
xml011.phpt
1.31
KB
-rw-rw-r--
2022-10-31 11:36
xml_closures_001.phpt
757
B
-rw-rw-r--
2022-10-31 11:36
xml_parse_into_struct_variation.phpt
2.09
KB
-rw-rw-r--
2022-10-31 11:36
xml_parser_get_option_variation3.phpt
781
B
-rw-rw-r--
2022-10-31 11:36
xml_parser_set_option_basic.phpt
1.62
KB
-rw-rw-r--
2022-10-31 11:36
xml_parser_set_option_variation3.phpt
2.53
KB
-rw-rw-r--
2022-10-31 11:36
xml_parser_set_option_variation4.phpt
613
B
-rw-rw-r--
2022-10-31 11:36
xml_set_notation_decl_handler_basic.phpt
2.81
KB
-rw-rw-r--
2022-10-31 11:36
xml_set_processing_instruction_handler_basic.phpt
1.22
KB
-rw-rw-r--
2022-10-31 11:36
xml_set_start_namespace_decl_handler_basic.phpt
1.52
KB
-rw-rw-r--
2022-10-31 11:36
xmltest.xml
367
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Bug #26614 (CDATA sections skipped on line count) --SKIPIF-- <?php require_once("skipif.inc"); if (!defined("LIBXML_VERSION")) die('skip libxml2 test'); ?> --FILE-- <?php /* this test works fine with Expat but fails with libxml which we now use as default further investigation has shown that not only line count is skippet on CDATA sections but that libxml does also show different column numbers and byte positions depending on context and in opposition to what one would expect to see and what good old Expat reported just fine ... */ $xmls = array(); // Case 1: CDATA Sections $xmls["CDATA"] ='<?xml version="1.0" encoding="iso-8859-1" ?> <data> <![CDATA[ multi line CDATA block ]]> </data>'; // Case 2: replace some characters so that we get comments instead $xmls["Comment"] ='<?xml version="1.0" encoding="iso-8859-1" ?> <data> <!-- ATA[ multi line CDATA block --> </data>'; // Case 3: replace even more characters so that only textual data is left $xmls["Text"] ='<?xml version="1.0" encoding="iso-8859-1" ?> <data> -!-- ATA[ multi line CDATA block --- </data>'; function startElement($parser, $name, $attrs) { printf("<$name> at line %d, col %d (byte %d)\n", xml_get_current_line_number($parser), xml_get_current_column_number($parser), xml_get_current_byte_index($parser)); } function endElement($parser, $name) { printf("</$name> at line %d, col %d (byte %d)\n", xml_get_current_line_number($parser), xml_get_current_column_number($parser), xml_get_current_byte_index($parser)); } function characterData($parser, $data) { // dummy } foreach ($xmls as $desc => $xml) { echo "$desc\n"; $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "startElement", "endElement"); xml_set_character_data_handler($xml_parser, "characterData"); if (!xml_parse($xml_parser, $xml, true)) echo "Error: ".xml_error_string(xml_get_error_code($xml_parser))."\n"; xml_parser_free($xml_parser); } ?> --EXPECTF-- CDATA <DATA> at line 2, col %d (byte 9) </DATA> at line 9, col %d (byte 56) Comment <DATA> at line 2, col %d (byte 9) </DATA> at line 9, col %d (byte 56) Text <DATA> at line 2, col %d (byte 9) </DATA> at line 9, col %d (byte 56)