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