diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 17:45:48 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 19:45:12 +0200 |
commit | 782352c54ad69c517e3c32b0dd2c25d74842647a (patch) | |
tree | 220bdc1e814e9f44b3578d49b3f239a3fdefa1d0 /ext/xml/tests | |
parent | 604d4bdae5037e021c1f9d35f08cbeddd610d84c (diff) | |
download | php-git-782352c54ad69c517e3c32b0dd2c25d74842647a.tar.gz |
Trim trailing whitespace in *.phpt
Diffstat (limited to 'ext/xml/tests')
64 files changed, 380 insertions, 380 deletions
diff --git a/ext/xml/tests/bug26528.phpt b/ext/xml/tests/bug26528.phpt index 40a1c53c9b..96da841004 100644 --- a/ext/xml/tests/bug26528.phpt +++ b/ext/xml/tests/bug26528.phpt @@ -1,7 +1,7 @@ --TEST-- Bug #26528 (HTML entities are not being decoded) --SKIPIF-- -<?php +<?php require_once("skipif.inc"); ?> --FILE-- diff --git a/ext/xml/tests/bug26614.phpt b/ext/xml/tests/bug26614.phpt index e1df1bbfde..c95997a8a6 100644 --- a/ext/xml/tests/bug26614.phpt +++ b/ext/xml/tests/bug26614.phpt @@ -1,9 +1,9 @@ --TEST-- Bug #26614 (CDATA sections skipped on line count) --SKIPIF-- -<?php +<?php require_once("skipif.inc"); -if (defined("LIBXML_VERSION")) die('skip expat test'); +if (defined("LIBXML_VERSION")) die('skip expat test'); ?> --FILE-- <?php @@ -42,7 +42,7 @@ block --> </data>'; -// Case 3: replace even more characters so that only textual data is left +// 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[ @@ -68,7 +68,7 @@ function endElement($parser, $name) { } function characterData($parser, $data) { - // dummy + // dummy } foreach ($xmls as $desc => $xml) { @@ -76,7 +76,7 @@ foreach ($xmls as $desc => $xml) { $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)) + if (!xml_parse($xml_parser, $xml, true)) echo "Error: ".xml_error_string(xml_get_error_code($xml_parser))."\n"; xml_parser_free($xml_parser); } diff --git a/ext/xml/tests/bug26614_libxml.phpt b/ext/xml/tests/bug26614_libxml.phpt index 782bdb1936..3ddd35ed0e 100644 --- a/ext/xml/tests/bug26614_libxml.phpt +++ b/ext/xml/tests/bug26614_libxml.phpt @@ -1,9 +1,9 @@ --TEST-- Bug #26614 (CDATA sections skipped on line count) --SKIPIF-- -<?php +<?php require_once("skipif.inc"); -if (!defined("LIBXML_VERSION")) die('skip libxml2 test'); +if (!defined("LIBXML_VERSION")) die('skip libxml2 test'); ?> --FILE-- <?php @@ -42,7 +42,7 @@ block --> </data>'; -// Case 3: replace even more characters so that only textual data is left +// 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[ @@ -68,7 +68,7 @@ function endElement($parser, $name) { } function characterData($parser, $data) { - // dummy + // dummy } foreach ($xmls as $desc => $xml) { @@ -76,7 +76,7 @@ foreach ($xmls as $desc => $xml) { $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)) + if (!xml_parse($xml_parser, $xml, true)) echo "Error: ".xml_error_string(xml_get_error_code($xml_parser))."\n"; xml_parser_free($xml_parser); } diff --git a/ext/xml/tests/bug27908.phpt b/ext/xml/tests/bug27908.phpt index e60466fa19..b1e583efa1 100644 --- a/ext/xml/tests/bug27908.phpt +++ b/ext/xml/tests/bug27908.phpt @@ -7,14 +7,14 @@ require_once("skipif.inc"); --FILE-- <?php -function x_default_handler($xp,$data) -{ - echo "x_default_handler $data\n"; -} -$xp = xml_parser_create(); -xml_set_default_handler($xp,'x_default_handler'); -xml_parse($xp, '<root></root>',TRUE); -xml_parser_free($xp); +function x_default_handler($xp,$data) +{ + echo "x_default_handler $data\n"; +} +$xp = xml_parser_create(); +xml_set_default_handler($xp,'x_default_handler'); +xml_parse($xp, '<root></root>',TRUE); +xml_parser_free($xp); echo "Done\n"; ?> --EXPECT-- diff --git a/ext/xml/tests/bug30266.phpt b/ext/xml/tests/bug30266.phpt index 0a3a5ca46b..2cf0a68cde 100644 --- a/ext/xml/tests/bug30266.phpt +++ b/ext/xml/tests/bug30266.phpt @@ -43,7 +43,7 @@ class XML_Parser $p1 = new Xml_Parser(); try { - $p1->parse('<tag1><tag2></tag2></tag1>'); + $p1->parse('<tag1><tag2></tag2></tag1>'); } catch (Exception $e) { echo "OK\n"; } diff --git a/ext/xml/tests/bug32001.phpt b/ext/xml/tests/bug32001.phpt index 2e9e67d4ca..ff27038a8d 100644 --- a/ext/xml/tests/bug32001.phpt +++ b/ext/xml/tests/bug32001.phpt @@ -122,7 +122,7 @@ HERE; echo "Chunk size: ".($this->chunk_size ? "$this->chunk_size byte(s)\n": "all data at once\n"); echo "BOM: ".($this->bom ? 'prepended': 'not prepended'), "\n"; - if ($success) { + if ($success) { var_dump($this->tags); } else { echo "[Error] ", xml_error_string(xml_get_error_code($parser)), "\n"; @@ -155,7 +155,7 @@ $suite = array( if (XML_SAX_IMPL == 'libxml') { echo "libxml2 Version => " . LIBXML_DOTTED_VERSION. "\n"; } else { - echo "libxml2 Version => NONE\n"; + echo "libxml2 Version => NONE\n"; } foreach ($suite as $testcase) { diff --git a/ext/xml/tests/bug32001b.phpt b/ext/xml/tests/bug32001b.phpt index ddf26ce3cb..21c20e40de 100644 --- a/ext/xml/tests/bug32001b.phpt +++ b/ext/xml/tests/bug32001b.phpt @@ -78,7 +78,7 @@ HERE; echo "Chunk size: ".($this->chunk_size ? "$this->chunk_size byte(s)\n": "all data at once\n"); echo "BOM: ".($this->bom ? 'prepended': 'not prepended'), "\n"; - if ($success) { + if ($success) { var_dump($this->tags); } else { echo "[Error] ", xml_error_string(xml_get_error_code($parser)), "\n"; @@ -97,7 +97,7 @@ $suite = array( if (XML_SAX_IMPL == 'libxml') { echo "libxml2 Version => " . LIBXML_DOTTED_VERSION. "\n"; } else { - echo "libxml2 Version => NONE\n"; + echo "libxml2 Version => NONE\n"; } foreach ($suite as $testcase) { diff --git a/ext/xml/tests/xml001.phpt b/ext/xml/tests/xml001.phpt index 987991e8a8..6d22e5526f 100644 --- a/ext/xml/tests/xml001.phpt +++ b/ext/xml/tests/xml001.phpt @@ -16,7 +16,7 @@ xml_set_character_data_handler($xml_parser, "characterData"); xml_set_processing_instruction_handler($xml_parser, "PIHandler"); xml_set_default_handler($xml_parser, "defaultHandler"); xml_set_external_entity_ref_handler($xml_parser, "externalEntityRefHandler"); - + if (!($fp = @fopen("xmltest.xml", "r"))) { die("could not open XML input"); } diff --git a/ext/xml/tests/xml003.phpt b/ext/xml/tests/xml003.phpt index 973431104b..dd5d8d1e44 100644 --- a/ext/xml/tests/xml003.phpt +++ b/ext/xml/tests/xml003.phpt @@ -11,7 +11,7 @@ chdir(dirname(__FILE__)); class myclass { - function startElement($parser, $name, $attribs) + function startElement($parser, $name, $attribs) { print '{'.$name; if (sizeof($attribs)) { diff --git a/ext/xml/tests/xml007.phpt b/ext/xml/tests/xml007.phpt index 377475bb1c..1b2510591c 100644 --- a/ext/xml/tests/xml007.phpt +++ b/ext/xml/tests/xml007.phpt @@ -16,8 +16,8 @@ function startHandler($parser,$tag,$attr) } function endHandler($parser,$tag) -{ - var_dump($tag); +{ + var_dump($tag); } $xmldata = '<?xml version="1.0" encoding="ISO-8859-1"?><äöü üäß="Üäß">ÄÖÜ</äöü>'; diff --git a/ext/xml/tests/xml010.phpt b/ext/xml/tests/xml010.phpt index e968442123..511129c699 100644 --- a/ext/xml/tests/xml010.phpt +++ b/ext/xml/tests/xml010.phpt @@ -9,7 +9,7 @@ if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is n <?php function start_elem($parser,$name,$attribs) { print "$name "; - + foreach($attribs as $key => $value) { print "$key = $value "; } diff --git a/ext/xml/tests/xml_error_string_error.phpt b/ext/xml/tests/xml_error_string_error.phpt index 866346fdd2..369e3cfb7c 100644 --- a/ext/xml/tests/xml_error_string_error.phpt +++ b/ext/xml/tests/xml_error_string_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_error_string() function : error conditions +Test xml_error_string() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto string xml_error_string(int code) - * Description: Get XML parser error string + * Description: Get XML parser error string * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_error_string() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_error_string_variation1.phpt b/ext/xml/tests/xml_error_string_variation1.phpt index ff152f8238..b06bfac8b3 100644 --- a/ext/xml/tests/xml_error_string_variation1.phpt +++ b/ext/xml/tests/xml_error_string_variation1.phpt @@ -3,15 +3,15 @@ Test xml_error_string() function : usage variations - test different types for --SKIPIF-- <?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only"); if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto string xml_error_string(int code) - * Description: Get XML parser error string + * Description: Get XML parser error string * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_error_string() : usage variations ***\n"; diff --git a/ext/xml/tests/xml_get_current_byte_index_error.phpt b/ext/xml/tests/xml_get_current_byte_index_error.phpt index 74fa2e7dd1..3e837ef8b5 100644 --- a/ext/xml/tests/xml_get_current_byte_index_error.phpt +++ b/ext/xml/tests/xml_get_current_byte_index_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_get_current_byte_index() function : error conditions +Test xml_get_current_byte_index() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_get_current_byte_index(resource parser) - * Description: Get current byte index for an XML parser + * Description: Get current byte index for an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_get_current_byte_index() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_get_current_byte_index_variation1.phpt b/ext/xml/tests/xml_get_current_byte_index_variation1.phpt index 9f5393bcae..720b233db8 100644 --- a/ext/xml/tests/xml_get_current_byte_index_variation1.phpt +++ b/ext/xml/tests/xml_get_current_byte_index_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_get_current_byte_index() function : usage variations - <type here specifics of this variation> --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_get_current_byte_index(resource parser) - * Description: Get current byte index for an XML parser + * Description: Get current byte index for an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_get_current_byte_index() : usage variations ***\n"; @@ -73,9 +73,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_get_current_column_number_error.phpt b/ext/xml/tests/xml_get_current_column_number_error.phpt index 1fd28cc0b2..547b0248a7 100644 --- a/ext/xml/tests/xml_get_current_column_number_error.phpt +++ b/ext/xml/tests/xml_get_current_column_number_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_get_current_column_number() function : error conditions +Test xml_get_current_column_number() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_get_current_column_number(resource parser) - * Description: Get current column number for an XML parser + * Description: Get current column number for an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_get_current_column_number() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_get_current_column_number_variation1.phpt b/ext/xml/tests/xml_get_current_column_number_variation1.phpt index 7431e10843..3825bc39dc 100644 --- a/ext/xml/tests/xml_get_current_column_number_variation1.phpt +++ b/ext/xml/tests/xml_get_current_column_number_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_get_current_column_number() function : usage variations +Test xml_get_current_column_number() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> + print "skip - XML extension not loaded"; +} +?> --FILE-- <?php /* Prototype : proto int xml_get_current_column_number(resource parser) - * Description: Get current column number for an XML parser + * Description: Get current column number for an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ @@ -74,9 +74,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_get_current_line_number_error.phpt b/ext/xml/tests/xml_get_current_line_number_error.phpt index 282c120f0f..db4fe9fdaf 100644 --- a/ext/xml/tests/xml_get_current_line_number_error.phpt +++ b/ext/xml/tests/xml_get_current_line_number_error.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_get_current_line_number() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> + print "skip - XML extension not loaded"; +} +?> --FILE-- <?php /* Prototype : proto int xml_get_current_line_number(resource parser) - * Description: Get current line number for an XML parser + * Description: Get current line number for an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_get_current_line_number() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_get_current_line_number_variation1.phpt b/ext/xml/tests/xml_get_current_line_number_variation1.phpt index 4c85f0a13d..143b6e092b 100644 --- a/ext/xml/tests/xml_get_current_line_number_variation1.phpt +++ b/ext/xml/tests/xml_get_current_line_number_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_get_current_line_number() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> + print "skip - XML extension not loaded"; +} +?> --FILE-- <?php /* Prototype : proto int xml_get_current_line_number(resource parser) - * Description: Get current line number for an XML parser + * Description: Get current line number for an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_get_current_line_number() : usage variations ***\n"; @@ -73,9 +73,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_get_error_code_error.phpt b/ext/xml/tests/xml_get_error_code_error.phpt index 683734ae34..2e97ba92b6 100644 --- a/ext/xml/tests/xml_get_error_code_error.phpt +++ b/ext/xml/tests/xml_get_error_code_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_get_error_code() function : error conditions +Test xml_get_error_code() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_get_error_code(resource parser) - * Description: Get XML parser error code + * Description: Get XML parser error code * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_get_error_code() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_get_error_code_variation1.phpt b/ext/xml/tests/xml_get_error_code_variation1.phpt index 58247ac01e..a8a4ad47e7 100644 --- a/ext/xml/tests/xml_get_error_code_variation1.phpt +++ b/ext/xml/tests/xml_get_error_code_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_get_error_code() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_get_error_code(resource parser) - * Description: Get XML parser error code + * Description: Get XML parser error code * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_get_error_code() : usage variations ***\n"; @@ -73,9 +73,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_parse_error.phpt b/ext/xml/tests/xml_parse_error.phpt index d8d8fffa80..e5036ddbeb 100644 --- a/ext/xml/tests/xml_parse_error.phpt +++ b/ext/xml/tests/xml_parse_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_parse() function : error conditions +Test xml_parse() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_parse(resource parser, string data [, int isFinal]) - * Description: Start parsing an XML document + * Description: Start parsing an XML document * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parse() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_parse_into_struct_error.phpt b/ext/xml/tests/xml_parse_into_struct_error.phpt index 82a26ad05e..56d943d00f 100644 --- a/ext/xml/tests/xml_parse_into_struct_error.phpt +++ b/ext/xml/tests/xml_parse_into_struct_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_parse_into_struct() function : error conditions +Test xml_parse_into_struct() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_parse_into_struct(resource parser, string data, array &struct, array &index) - * Description: Parsing a XML document + * Description: Parsing a XML document * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parse_into_struct() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_parse_into_struct_variation.phpt b/ext/xml/tests/xml_parse_into_struct_variation.phpt index a353e51419..eadc3edc94 100644 --- a/ext/xml/tests/xml_parse_into_struct_variation.phpt +++ b/ext/xml/tests/xml_parse_into_struct_variation.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_parse_into_struct() function : variation +Test xml_parse_into_struct() function : variation --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_parse_into_struct(resource parser, string data, array &struct, array &index) - * Description: Parsing a XML document + * Description: Parsing a XML document * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parse_into_struct() : variation ***\n"; diff --git a/ext/xml/tests/xml_parse_into_struct_variation1.phpt b/ext/xml/tests/xml_parse_into_struct_variation1.phpt index e9c41e8f24..0cb22a5371 100644 --- a/ext/xml/tests/xml_parse_into_struct_variation1.phpt +++ b/ext/xml/tests/xml_parse_into_struct_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_parse_into_struct() function : usage variations - different types for parser --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_parse_into_struct(resource parser, string data, array &struct, array &index) - * Description: Parsing a XML document + * Description: Parsing a XML document * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parse_into_struct() : usage variations ***\n"; @@ -74,9 +74,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_parse_variation1.phpt b/ext/xml/tests/xml_parse_variation1.phpt index 35a3810ad1..685a50eed1 100644 --- a/ext/xml/tests/xml_parse_variation1.phpt +++ b/ext/xml/tests/xml_parse_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_parse() function : usage variations - different types of parser --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_parse(resource parser, string data [, int isFinal]) - * Description: Start parsing an XML document + * Description: Start parsing an XML document * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parse() : usage variations ***\n"; @@ -75,9 +75,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_parser_create_error.phpt b/ext/xml/tests/xml_parser_create_error.phpt index 571350e873..ac64294639 100644 --- a/ext/xml/tests/xml_parser_create_error.phpt +++ b/ext/xml/tests/xml_parser_create_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_parser_create() function : error conditions +Test xml_parser_create() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto resource xml_parser_create([string encoding]) - * Description: Create an XML parser + * Description: Create an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parser_create() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_parser_create_ns_error.phpt b/ext/xml/tests/xml_parser_create_ns_error.phpt index fd50f29488..f1fd3f00fe 100644 --- a/ext/xml/tests/xml_parser_create_ns_error.phpt +++ b/ext/xml/tests/xml_parser_create_ns_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_parser_create_ns() function : error conditions +Test xml_parser_create_ns() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto resource xml_parser_create_ns([string encoding [, string sep]]) - * Description: Create an XML parser + * Description: Create an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parser_create_ns() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_parser_create_ns_variation1.phpt b/ext/xml/tests/xml_parser_create_ns_variation1.phpt index 2818b82fe8..430bebe676 100644 --- a/ext/xml/tests/xml_parser_create_ns_variation1.phpt +++ b/ext/xml/tests/xml_parser_create_ns_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_parser_create_ns() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto resource xml_parser_create_ns([string encoding [, string sep]]) - * Description: Create an XML parser + * Description: Create an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parser_create_ns() : usage variations ***\n"; @@ -77,9 +77,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, @@ -92,7 +92,7 @@ $values = array( foreach($values as $value) { echo @"\nArg value $value \n"; - $res = xml_parser_create_ns($value); + $res = xml_parser_create_ns($value); var_dump($res); if ($res !== false) { xml_parser_free($res); diff --git a/ext/xml/tests/xml_parser_create_variation1.phpt b/ext/xml/tests/xml_parser_create_variation1.phpt index c5d588fec3..2caefa0d82 100644 --- a/ext/xml/tests/xml_parser_create_variation1.phpt +++ b/ext/xml/tests/xml_parser_create_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_parser_create() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto resource xml_parser_create([string encoding]) - * Description: Create an XML parser + * Description: Create an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parser_create() : usage variations ***\n"; @@ -77,9 +77,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_parser_free_error.phpt b/ext/xml/tests/xml_parser_free_error.phpt index 13afb95a71..f1a1846a3b 100644 --- a/ext/xml/tests/xml_parser_free_error.phpt +++ b/ext/xml/tests/xml_parser_free_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_parser_free() function : error conditions +Test xml_parser_free() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_parser_free(resource parser) - * Description: Free an XML parser + * Description: Free an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parser_free() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_parser_free_variation1.phpt b/ext/xml/tests/xml_parser_free_variation1.phpt index b488b481b6..be14effc8a 100644 --- a/ext/xml/tests/xml_parser_free_variation1.phpt +++ b/ext/xml/tests/xml_parser_free_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_parser_free() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_parser_free(resource parser) - * Description: Free an XML parser + * Description: Free an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parser_free() : usage variations ***\n"; @@ -73,9 +73,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_parser_get_option_error.phpt b/ext/xml/tests/xml_parser_get_option_error.phpt index a35536934c..2455dd5d32 100644 --- a/ext/xml/tests/xml_parser_get_option_error.phpt +++ b/ext/xml/tests/xml_parser_get_option_error.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_parser_get_option() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> + print "skip - XML extension not loaded"; +} +?> --FILE-- <?php /* Prototype : proto int xml_parser_get_option(resource parser, int option) - * Description: Get options from an XML parser + * Description: Get options from an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parser_get_option() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_parser_get_option_variation1.phpt b/ext/xml/tests/xml_parser_get_option_variation1.phpt index fd08670d9e..853548f010 100644 --- a/ext/xml/tests/xml_parser_get_option_variation1.phpt +++ b/ext/xml/tests/xml_parser_get_option_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_parser_get_option() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_parser_get_option(resource parser, int option) - * Description: Get options from an XML parser + * Description: Get options from an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parser_get_option() : usage variations ***\n"; @@ -74,9 +74,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_parser_get_option_variation2.phpt b/ext/xml/tests/xml_parser_get_option_variation2.phpt index 367128727c..f3307c4b7f 100644 --- a/ext/xml/tests/xml_parser_get_option_variation2.phpt +++ b/ext/xml/tests/xml_parser_get_option_variation2.phpt @@ -3,15 +3,15 @@ Test xml_parser_get_option() function : usage variations --SKIPIF-- <?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only"); if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_parser_get_option(resource parser, int option) - * Description: Get options from an XML parser + * Description: Get options from an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parser_get_option() : usage variations ***\n"; @@ -74,7 +74,7 @@ $values = array( new aClass(), // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_parser_set_option_basic.phpt b/ext/xml/tests/xml_parser_set_option_basic.phpt index 61316a4b0f..48d91eafb6 100644 --- a/ext/xml/tests/xml_parser_set_option_basic.phpt +++ b/ext/xml/tests/xml_parser_set_option_basic.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_set_notation_decl_handler function : basic +Test xml_set_notation_decl_handler function : basic --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto bool xml_set_notation_decl_handler ( resource $parser , callback $handler ) * Description: Sets the notation declaration handler function for the XML parser. * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "Simple testcase for xml_parser_get_option() function\n"; diff --git a/ext/xml/tests/xml_parser_set_option_error.phpt b/ext/xml/tests/xml_parser_set_option_error.phpt index 28829bcfa5..6c68252c13 100644 --- a/ext/xml/tests/xml_parser_set_option_error.phpt +++ b/ext/xml/tests/xml_parser_set_option_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_parser_set_option() function : error conditions +Test xml_parser_set_option() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_parser_set_option(resource parser, int option, mixed value) - * Description: Set options in an XML parser + * Description: Set options in an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parser_set_option() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_parser_set_option_variation1.phpt b/ext/xml/tests/xml_parser_set_option_variation1.phpt index 528fcf8bde..c5159f6a53 100644 --- a/ext/xml/tests/xml_parser_set_option_variation1.phpt +++ b/ext/xml/tests/xml_parser_set_option_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_parser_set_option() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_parser_set_option(resource parser, int option, mixed value) - * Description: Set options in an XML parser + * Description: Set options in an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parser_set_option() : usage variations ***\n"; @@ -74,9 +74,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_parser_set_option_variation2.phpt b/ext/xml/tests/xml_parser_set_option_variation2.phpt index 3432e11d73..043ab287df 100644 --- a/ext/xml/tests/xml_parser_set_option_variation2.phpt +++ b/ext/xml/tests/xml_parser_set_option_variation2.phpt @@ -1,18 +1,18 @@ --TEST-- Test xml_parser_set_option() function : usage variations --SKIPIF-- -<?php +<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64-bit only"); if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_parser_set_option(resource parser, int option, mixed value) - * Description: Set options in an XML parser + * Description: Set options in an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parser_set_option() : usage variations ***\n"; diff --git a/ext/xml/tests/xml_parser_set_option_variation3.phpt b/ext/xml/tests/xml_parser_set_option_variation3.phpt index c215ef5fde..836ee7a469 100644 --- a/ext/xml/tests/xml_parser_set_option_variation3.phpt +++ b/ext/xml/tests/xml_parser_set_option_variation3.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_parser_set_option() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_parser_set_option(resource parser, int option, mixed value) - * Description: Set options in an XML parser + * Description: Set options in an XML parser * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_parser_set_option() : usage variations ***\n"; @@ -78,7 +78,7 @@ $values = array( new aClass(), // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_set_character_data_handler_error.phpt b/ext/xml/tests/xml_set_character_data_handler_error.phpt index 16faaa4f67..a0597386ac 100644 --- a/ext/xml/tests/xml_set_character_data_handler_error.phpt +++ b/ext/xml/tests/xml_set_character_data_handler_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_set_character_data_handler() function : error conditions +Test xml_set_character_data_handler() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_character_data_handler(resource parser, string hdl) - * Description: Set up character data handler + * Description: Set up character data handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_character_data_handler() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_set_character_data_handler_variation1.phpt b/ext/xml/tests/xml_set_character_data_handler_variation1.phpt index 2270ded5ea..6519f83cb6 100644 --- a/ext/xml/tests/xml_set_character_data_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_character_data_handler_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_set_character_data_handler() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_character_data_handler(resource parser, string hdl) - * Description: Set up character data handler + * Description: Set up character data handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_character_data_handler() : usage variations ***\n"; @@ -78,9 +78,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_set_default_handler_error.phpt b/ext/xml/tests/xml_set_default_handler_error.phpt index a4b1b7cbee..3adc40a6c7 100644 --- a/ext/xml/tests/xml_set_default_handler_error.phpt +++ b/ext/xml/tests/xml_set_default_handler_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_set_default_handler() function : error conditions +Test xml_set_default_handler() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_default_handler(resource parser, string hdl) - * Description: Set up default handler + * Description: Set up default handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_default_handler() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_set_default_handler_variation1.phpt b/ext/xml/tests/xml_set_default_handler_variation1.phpt index f4d3175ced..83b73cc4c3 100644 --- a/ext/xml/tests/xml_set_default_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_default_handler_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_set_default_handler() function : usage variations - test different types for parser --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_default_handler(resource parser, string hdl) - * Description: Set up default handler + * Description: Set up default handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_default_handler() : usage variations ***\n"; @@ -78,9 +78,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_set_element_handler_error.phpt b/ext/xml/tests/xml_set_element_handler_error.phpt index 6ccaea1552..7661df8ea6 100644 --- a/ext/xml/tests/xml_set_element_handler_error.phpt +++ b/ext/xml/tests/xml_set_element_handler_error.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_set_element_handler() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> + print "skip - XML extension not loaded"; +} +?> --FILE-- <?php /* Prototype : proto int xml_set_element_handler(resource parser, string shdl, string ehdl) - * Description: Set up start and end element handlers + * Description: Set up start and end element handlers * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_element_handler() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_set_element_handler_variation1.phpt b/ext/xml/tests/xml_set_element_handler_variation1.phpt index 4bfd18fa4b..e8797b4225 100644 --- a/ext/xml/tests/xml_set_element_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_element_handler_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_set_element_handler() function : usage variations - test different types for parser --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_element_handler(resource parser, string shdl, string ehdl) - * Description: Set up start and end element handlers + * Description: Set up start and end element handlers * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_element_handler() : usage variations ***\n"; @@ -78,9 +78,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_set_end_namespace_decl_handler_error.phpt b/ext/xml/tests/xml_set_end_namespace_decl_handler_error.phpt index 81bb3f6233..35f923d72c 100644 --- a/ext/xml/tests/xml_set_end_namespace_decl_handler_error.phpt +++ b/ext/xml/tests/xml_set_end_namespace_decl_handler_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_set_end_namespace_decl_handler() function : error conditions +Test xml_set_end_namespace_decl_handler() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_end_namespace_decl_handler(resource parser, string hdl) - * Description: Set up character data handler + * Description: Set up character data handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_end_namespace_decl_handler() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_set_end_namespace_decl_handler_variation1.phpt b/ext/xml/tests/xml_set_end_namespace_decl_handler_variation1.phpt index f8333c236b..fa1a411c4b 100644 --- a/ext/xml/tests/xml_set_end_namespace_decl_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_end_namespace_decl_handler_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_set_end_namespace_decl_handler() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> + print "skip - XML extension not loaded"; +} +?> --FILE-- <?php /* Prototype : proto int xml_set_end_namespace_decl_handler(resource parser, string hdl) - * Description: Set up character data handler + * Description: Set up character data handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_end_namespace_decl_handler() : usage variations ***\n"; @@ -78,9 +78,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_set_external_entity_ref_handler_error.phpt b/ext/xml/tests/xml_set_external_entity_ref_handler_error.phpt index 6dd400ac84..7ba32b9a1e 100644 --- a/ext/xml/tests/xml_set_external_entity_ref_handler_error.phpt +++ b/ext/xml/tests/xml_set_external_entity_ref_handler_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_set_external_entity_ref_handler() function : error conditions +Test xml_set_external_entity_ref_handler() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_external_entity_ref_handler(resource parser, string hdl) - * Description: Set up external entity reference handler + * Description: Set up external entity reference handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_external_entity_ref_handler() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_set_external_entity_ref_handler_variation1.phpt b/ext/xml/tests/xml_set_external_entity_ref_handler_variation1.phpt index cd03b5b8b1..a724e316ba 100644 --- a/ext/xml/tests/xml_set_external_entity_ref_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_external_entity_ref_handler_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_set_external_entity_ref_handler() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_external_entity_ref_handler(resource parser, string hdl) - * Description: Set up external entity reference handler + * Description: Set up external entity reference handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_external_entity_ref_handler() : usage variations ***\n"; @@ -78,9 +78,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_set_notation_decl_handler_basic.phpt b/ext/xml/tests/xml_set_notation_decl_handler_basic.phpt index 6616681ff8..a4ea86375e 100644 --- a/ext/xml/tests/xml_set_notation_decl_handler_basic.phpt +++ b/ext/xml/tests/xml_set_notation_decl_handler_basic.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_set_notation_decl_handler function : basic +Test xml_set_notation_decl_handler function : basic --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto bool xml_set_notation_decl_handler ( resource $parser , callback $handler ) * Description: Sets the notation declaration handler function for the XML parser. * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ class XML_Parser @@ -26,16 +26,16 @@ class XML_Parser echo "...Public ID=" . $public_ID . "\n"; echo "...Notation name=" . $notation_name . "\n"; } - + function notation_decl_handler($parser, $name, $base, $system_ID,$public_ID) { - echo "notation_decl_handler called\n"; + echo "notation_decl_handler called\n"; echo "...Name=" . $name . "\n"; echo "...Base=" . $base . "\n"; echo "...System ID=" . $system_ID . "\n"; echo "...Public ID=" . $public_ID . "\n"; } - + function parse($data) { $parser = xml_parser_create(); @@ -59,10 +59,10 @@ $xml = <<<HERE ]> HERE; -echo "Simple test of xml_set_notation_decl_handler(() function\n"; +echo "Simple test of xml_set_notation_decl_handler(() function\n"; $p1 = new Xml_Parser(); -$p1->parse($xml); -echo "Done\n"; +$p1->parse($xml); +echo "Done\n"; ?> --EXPECT-- Simple test of xml_set_notation_decl_handler(() function diff --git a/ext/xml/tests/xml_set_notation_decl_handler_error.phpt b/ext/xml/tests/xml_set_notation_decl_handler_error.phpt index fccc135f76..60fc4383a7 100644 --- a/ext/xml/tests/xml_set_notation_decl_handler_error.phpt +++ b/ext/xml/tests/xml_set_notation_decl_handler_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_set_notation_decl_handler() function : error conditions +Test xml_set_notation_decl_handler() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_notation_decl_handler(resource parser, string hdl) - * Description: Set up notation declaration handler + * Description: Set up notation declaration handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_notation_decl_handler() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_set_notation_decl_handler_variation1.phpt b/ext/xml/tests/xml_set_notation_decl_handler_variation1.phpt index 10910f6530..8281105081 100644 --- a/ext/xml/tests/xml_set_notation_decl_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_notation_decl_handler_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_set_notation_decl_handler() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_notation_decl_handler(resource parser, string hdl) - * Description: Set up notation declaration handler + * Description: Set up notation declaration handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_notation_decl_handler() : usage variations ***\n"; @@ -78,9 +78,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_set_object_error.phpt b/ext/xml/tests/xml_set_object_error.phpt index db3266ea13..39a8511218 100644 --- a/ext/xml/tests/xml_set_object_error.phpt +++ b/ext/xml/tests/xml_set_object_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_set_object() function : error conditions +Test xml_set_object() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_object(resource parser, object &obj) - * Description: Set up object which should be used for callbacks + * Description: Set up object which should be used for callbacks * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_object() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_set_object_variation1.phpt b/ext/xml/tests/xml_set_object_variation1.phpt index 92c3d875f0..bdea52cc8d 100644 --- a/ext/xml/tests/xml_set_object_variation1.phpt +++ b/ext/xml/tests/xml_set_object_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_set_object() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_object(resource parser, object &obj) - * Description: Set up object which should be used for callbacks + * Description: Set up object which should be used for callbacks * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_object() : usage variations ***\n"; @@ -74,9 +74,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_set_object_variation2.phpt b/ext/xml/tests/xml_set_object_variation2.phpt index 739c091241..83af35b93d 100644 --- a/ext/xml/tests/xml_set_object_variation2.phpt +++ b/ext/xml/tests/xml_set_object_variation2.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_set_object() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_object(resource parser, object &obj) - * Description: Set up object which should be used for callbacks + * Description: Set up object which should be used for callbacks * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_object() : usage variations ***\n"; @@ -66,9 +66,9 @@ $values = array( // string data "string", 'string', - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_set_processing_instruction_handler_basic.phpt b/ext/xml/tests/xml_set_processing_instruction_handler_basic.phpt index e5589cee29..d38085d26c 100644 --- a/ext/xml/tests/xml_set_processing_instruction_handler_basic.phpt +++ b/ext/xml/tests/xml_set_processing_instruction_handler_basic.phpt @@ -1,28 +1,28 @@ --TEST-- -Test xml_set_processing_instruction_handler function : basic +Test xml_set_processing_instruction_handler function : basic --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto bool xml_set_processing_instruction_handler ( resource $parser , callback $handler ) * Description: Sets the processing instruction (PI) handler function for the XML parser. * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ class XML_Parser { - + function PIHandler($parser, $target, $data) { echo "Target: " . $target. "\n"; echo "Data: " . $data . "\n"; } - + function parse($data) { $parser = xml_parser_create(); @@ -32,7 +32,7 @@ class XML_Parser xml_parser_free($parser); } - + } $xml = <<<HERE @@ -40,10 +40,10 @@ $xml = <<<HERE <?xml-stylesheet href="default.xsl" type="text/xml"?> HERE; -echo "Simple test of xml_set_processing_instruction_handler() function\n"; +echo "Simple test of xml_set_processing_instruction_handler() function\n"; $p1 = new Xml_Parser(); -$p1->parse($xml); -echo "Done\n"; +$p1->parse($xml); +echo "Done\n"; ?> --EXPECT-- Simple test of xml_set_processing_instruction_handler() function diff --git a/ext/xml/tests/xml_set_processing_instruction_handler_error.phpt b/ext/xml/tests/xml_set_processing_instruction_handler_error.phpt index f2a8494d54..561bd35472 100644 --- a/ext/xml/tests/xml_set_processing_instruction_handler_error.phpt +++ b/ext/xml/tests/xml_set_processing_instruction_handler_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_set_processing_instruction_handler() function : error conditions +Test xml_set_processing_instruction_handler() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_processing_instruction_handler(resource parser, string hdl) - * Description: Set up processing instruction (PI) handler + * Description: Set up processing instruction (PI) handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_processing_instruction_handler() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_set_processing_instruction_handler_variation1.phpt b/ext/xml/tests/xml_set_processing_instruction_handler_variation1.phpt index a05d0e60e7..8bc93c72e5 100644 --- a/ext/xml/tests/xml_set_processing_instruction_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_processing_instruction_handler_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_set_processing_instruction_handler() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_processing_instruction_handler(resource parser, string hdl) - * Description: Set up processing instruction (PI) handler + * Description: Set up processing instruction (PI) handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_processing_instruction_handler() : usage variations ***\n"; @@ -78,9 +78,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_set_start_namespace_decl_handler_basic.phpt b/ext/xml/tests/xml_set_start_namespace_decl_handler_basic.phpt index 79b8cb88fc..08ea65f8bb 100644 --- a/ext/xml/tests/xml_set_start_namespace_decl_handler_basic.phpt +++ b/ext/xml/tests/xml_set_start_namespace_decl_handler_basic.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_set_start_namespace_decl_handler function: basic +Test xml_set_start_namespace_decl_handler function: basic --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : bool xml_set_start_namespace_decl_handler ( resource $parser , callback $handler ) * Description: Set up start namespace declaration handler. * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ $xml = <<<HERE @@ -34,13 +34,13 @@ xml_parser_free( $parser ); echo "Done\n"; function Namespace_Start_Handler( $parser, $prefix, $uri ) { - echo "Namespace_Start_Handler called\n"; + echo "Namespace_Start_Handler called\n"; echo "...Prefix: ". $prefix . "\n"; echo "...Uri: ". $uri . "\n"; } function Namespace_End_Handler($parser, $prefix) { - echo "Namespace_End_Handler called\n"; + echo "Namespace_End_Handler called\n"; echo "...Prefix: ". $prefix . "\n\n"; } diff --git a/ext/xml/tests/xml_set_start_namespace_decl_handler_error.phpt b/ext/xml/tests/xml_set_start_namespace_decl_handler_error.phpt index 221b005dfd..e3cab09be2 100644 --- a/ext/xml/tests/xml_set_start_namespace_decl_handler_error.phpt +++ b/ext/xml/tests/xml_set_start_namespace_decl_handler_error.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_set_start_namespace_decl_handler() function : error conditions +Test xml_set_start_namespace_decl_handler() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_start_namespace_decl_handler(resource parser, string hdl) - * Description: Set up character data handler + * Description: Set up character data handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_start_namespace_decl_handler() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_set_start_namespace_decl_handler_variation1.phpt b/ext/xml/tests/xml_set_start_namespace_decl_handler_variation1.phpt index 5139499f1d..0600362cb8 100644 --- a/ext/xml/tests/xml_set_start_namespace_decl_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_start_namespace_decl_handler_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_set_start_namespace_decl_handler() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_start_namespace_decl_handler(resource parser, string hdl) - * Description: Set up character data handler + * Description: Set up character data handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_start_namespace_decl_handler() : usage variations ***\n"; @@ -78,9 +78,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, diff --git a/ext/xml/tests/xml_set_unparsed_entity_decl_handler_error.phpt b/ext/xml/tests/xml_set_unparsed_entity_decl_handler_error.phpt index 952a6984b4..c0aac2339e 100644 --- a/ext/xml/tests/xml_set_unparsed_entity_decl_handler_error.phpt +++ b/ext/xml/tests/xml_set_unparsed_entity_decl_handler_error.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_set_unparsed_entity_decl_handler() function : error conditions --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> + print "skip - XML extension not loaded"; +} +?> --FILE-- <?php /* Prototype : proto int xml_set_unparsed_entity_decl_handler(resource parser, string hdl) - * Description: Set up unparsed entity declaration handler + * Description: Set up unparsed entity declaration handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_unparsed_entity_decl_handler() : error conditions ***\n"; diff --git a/ext/xml/tests/xml_set_unparsed_entity_decl_handler_variation1.phpt b/ext/xml/tests/xml_set_unparsed_entity_decl_handler_variation1.phpt index b5d822ed89..ed58275dcc 100644 --- a/ext/xml/tests/xml_set_unparsed_entity_decl_handler_variation1.phpt +++ b/ext/xml/tests/xml_set_unparsed_entity_decl_handler_variation1.phpt @@ -1,17 +1,17 @@ --TEST-- Test xml_set_unparsed_entity_decl_handler() function : usage variations --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto int xml_set_unparsed_entity_decl_handler(resource parser, string hdl) - * Description: Set up unparsed entity declaration handler + * Description: Set up unparsed entity declaration handler * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ echo "*** Testing xml_set_unparsed_entity_decl_handler() : usage variations ***\n"; @@ -78,9 +78,9 @@ $values = array( // object data new aClass(), - + // resource data - $fp, + $fp, // undefined data $undefined_var, |