- improve response performance
[m6w6/ext-http] / tests / redirect_002.phpt
index da77696ffe9155acdbd6bc67fdbb10a3c69ccd7f..29985f3507375eb3f666f36067f5d3f545e70fe3 100644 (file)
@@ -4,15 +4,21 @@ http_redirect() with session
 <?php 
 include 'skip.inc';
 checkcgi();
+checkmax(5.0);
+checkext('session');
 ?>
+--ENV--
+HTTP_HOST=localhost
 --FILE--
 <?php
+include 'log.inc';
+log_prepare(_REDIR_LOG);
 session_start();
 http_redirect('redirect', array('a' => 1), true);
 ?>
 --EXPECTF--
 Status: 302
-Content-type: text/html
+Content-type: %s
 X-Powered-By: PHP/%s
 Set-Cookie: PHPSESSID=%s; path=/
 Expires: %s