- fix behaviour of http_build_url() when second parameter is NULL
[m6w6/ext-http] / tests / redirect_003.phpt
index 2f893c345384b709b9a878dd51a77c4cc7cd99e4..6396e09e79f8178042576a4b01b7776a2906cdcb 100644 (file)
@@ -4,14 +4,19 @@ http_redirect() permanent
 <?php 
 include 'skip.inc';
 checkcgi();
+checkmax(5.0);
 ?>
+--ENV--
+HTTP_HOST=localhost
 --FILE--
 <?php
-http_redirect('redirect', null, false, true);
+include 'log.inc';
+log_prepare(_REDIR_LOG);
+http_redirect('redirect', null, false, HTTP_REDIRECT_PERM);
 ?>
 --EXPECTF--
 Status: 301
-Content-type: text/html
+Content-type: %s
 X-Powered-By: PHP/%s
 Location: http://localhost/redirect