]> granicus.if.org Git - php/commitdiff
revert previous commit.
authorRui Hirokawa <hirokawa@php.net>
Sun, 11 Sep 2011 03:56:16 +0000 (03:56 +0000)
committerRui Hirokawa <hirokawa@php.net>
Sun, 11 Sep 2011 03:56:16 +0000 (03:56 +0000)
ext/mbstring/tests/mb_parse_str.phpt
ext/mbstring/tests/mb_parse_str02.phpt

index 03a8ccb10b3d706a89ec0b6ba5c0ccf463a74922..f11b943c2628cfc90a5544be20eb86bf60236c59 100644 (file)
@@ -2,14 +2,12 @@
 mb_parse_str()
 --SKIPIF--
 <?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
---FAIL--
-register_globals calls killed the ability for mb_parse_str() to register into the global scope (obsolete in PHP 5.4)
+--XFAIL--
+register_globals calls killed the ability for mb_parse_str() to register into the global scope
 --INI--
 arg_separator.input=&
 --FILE--
 <?php
-ini_set('include_path', dirname(__FILE__));
-include_once('common.inc');
 $queries = array(
        "foo=abc&bar=def",
        "%2bfoo=def&-bar=jkl",
@@ -39,9 +37,8 @@ array(2) {
 }
 string(0) ""
 string(0) ""
-ERR: Warning
-string(0) ""
-string(0) ""
+string(3) "abc"
+string(3) "def"
 array(2) {
   ["+foo"]=>
   string(3) "def"
@@ -50,7 +47,6 @@ array(2) {
 }
 string(0) ""
 string(0) ""
-ERR: Warning
 string(0) ""
 string(0) ""
 array(2) {
@@ -71,6 +67,15 @@ array(2) {
 }
 string(0) ""
 string(0) ""
-ERR: Warning
-string(0) ""
-string(0) ""
+array(3) {
+  [0]=>
+  string(3) "abc"
+  [1]=>
+  string(3) "def"
+  [2]=>
+  string(3) "ghi"
+}
+array(1) {
+  [0]=>
+  string(3) "jkl"
+}
index 09dca578381ef02d36ff3172093561f951c1485e..d9b5eb20d9380252194eb4ced30a16cd3a07846b 100644 (file)
@@ -3,13 +3,11 @@ mb_parse_str() test 2
 --SKIPIF--
 <?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
 --XFAIL--
-register_globals calls killed the ability for mb_parse_str() to register into the global scope (obsolete in PHP 5.4)
+register_globals calls killed the ability for mb_parse_str() to register into the global scope
 --INI--
 arg_separator.input=&#
 --FILE--
 <?php
-ini_set('include_path', dirname(__FILE__));
-include_once('common.inc');
 $queries = array(
        "foo=abc#bar=def&fubar=ghi",
        "%2bfoo=def&-bar=jkl#+fubar",