release 1.7.5
[m6w6/ext-http] / tests / redirect_012.phpt
1 --TEST--
2 http_redirect() with session
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 checkmin("5.2.5");
8 checkext('session');
9 ?>
10 --ENV--
11 HTTP_HOST=localhost
12 --FILE--
13 <?php
14 include 'log.inc';
15 log_prepare(_REDIR_LOG);
16 session_start();
17 http_redirect('redirect', array('a' => 1), true);
18 ?>
19 --EXPECTF--
20 Status: 302%s
21 X-Powered-By: PHP/%a
22 Set-Cookie: PHPSESSID=%a; path=/
23 Expires: %a
24 Cache-Control: %a
25 Pragma: %a
26 Location: http://localhost/redirect?a=1&PHPSESSID=%a
27 Content-type: %a