fixed some tests for windows
authorAnatoliy Belsky <ab@php.net>
Sat, 23 Nov 2013 10:15:56 +0000 (10:15 +0000)
committerAnatoliy Belsky <ab@php.net>
Sat, 23 Nov 2013 10:15:56 +0000 (10:15 +0000)
tests/envrequestbody003.phpt
tests/envrequestheader001.phpt

index 1aeae79fb90d8a46cd3c8c6e997e047cc46692c1..c2bde8381feab2ea7642674e171f70d4683f244e 100644 (file)
@@ -38,7 +38,7 @@ array(1) {
     ["type"]=>
     string(0) ""
     ["tmp_name"]=>
-    string(14) "%s"
+    string(%d) "%s"
     ["error"]=>
     int(0)
     ["size"]=>
index 5ec5eb7373e4a5670c0091274038dbfad4247996..bfc9ccbd3db4c81e9f36c3af4b92e23e0826cd3e 100644 (file)
@@ -13,19 +13,21 @@ HTTP_ACCEPT=*/*
 var_dump(http\Env::getRequestHeader("nono"));
 var_dump(http\Env::getRequestHeader("Host"));
 var_dump(http\Env::getRequestHeader("content-type"));
-var_dump(http\Env::getRequestHeader());
+$hdr = http\Env::getRequestHeader();
+ksort($hdr);
+var_dump($hdr);
 ?>
 --EXPECTF--
 NULL
 string(%d) "foo.bar"
 string(%d) "application/x-www-form-urlencoded"
 array(4) {
-  ["Host"]=>
-  string(7) "foo.bar"
   ["Accept"]=>
   string(3) "*/*"
   ["Content-Length"]=>
   string(1) "3"
   ["Content-Type"]=>
   string(33) "application/x-www-form-urlencoded"
+  ["Host"]=>
+  string(7) "foo.bar"
 }