- fix some tests on linux
authorMichael Wallner <mike@php.net>
Fri, 9 Sep 2005 15:06:42 +0000 (15:06 +0000)
committerMichael Wallner <mike@php.net>
Fri, 9 Sep 2005 15:06:42 +0000 (15:06 +0000)
rebuild
tests/get_request_data_001.phpt
tests/redirect_001.phpt
tests/redirect_002.phpt
tests/redirect_003.phpt

diff --git a/rebuild b/rebuild
index 0643c83ef3e071d65938243a88eb0ea48b4bef6b..2506a9b6a50d6afa2ce549b5a0b6e72229aad6a3 100755 (executable)
--- a/rebuild
+++ b/rebuild
@@ -11,7 +11,7 @@ echo "DONE"
 
 echo -n "configuring... "
 CFLAGS="-W -Wchar-subscripts -Wformat=2 -Wno-format-y2k -Wimplicit -Wmissing-braces -Wunused-variable  -Wbad-function-cast -Wpointer-arith -Wsign-compare -Winline" \
-    ./configure >/dev/null
+    ./configure $@ >/dev/null
 if test $? -ne 0 ; then
     echo "FAILED!"
     exit 1
index 00272941d5c99d1efa72f95c35d8a2a217a64936..4d15265a3f90755cc17626a7cb03351cfed06252 100644 (file)
@@ -8,6 +8,7 @@ include 'skip.inc';
 HTTP_ACCEPT_CHARSET=iso-8859-1, *
 HTTP_ACCEPT_ENCODING=none
 HTTP_USER_AGENT=Mozilla/5.0
+HTTP_HOST=localhost
 --POST--
 a=b&c=d
 --FILE--
@@ -28,6 +29,7 @@ Array
 (
     [Accept-Charset] => iso-8859-1, *
     [Accept-Encoding] => none
+    [Host] => localhost
     [User-Agent] => Mozilla/5.0
 )
 OK
index 696157953300d39a62a5cafc558974d62671c385..d4e7bbd7a778e8bb5ac83fbba9039c6e3bfacef9 100644 (file)
@@ -5,6 +5,8 @@ http_redirect() with params
 include 'skip.inc';
 checkcgi();
 ?>
+--ENV--
+HTTP_HOST=localhost
 --FILE--
 <?php
 include 'log.inc';
index 9add4a0b1c3f0809b5967be69431bc881a9da0de..d43e9adc76bea03a091720bb6d1a38111fb59c07 100644 (file)
@@ -5,6 +5,8 @@ http_redirect() with session
 include 'skip.inc';
 checkcgi();
 ?>
+--ENV--
+HTTP_HOST=localhost
 --FILE--
 <?php
 include 'log.inc';
index cd9fb4eff455305adf41e934eef0f96b9208ac96..ba9b83b6734b7382f25770ab9eddd6d519c7b7ff 100644 (file)
@@ -5,6 +5,8 @@ http_redirect() permanent
 include 'skip.inc';
 checkcgi();
 ?>
+--ENV--
+HTTP_HOST=localhost
 --FILE--
 <?php
 include 'log.inc';