Annotation of embedaddon/php/sapi/cgi/tests/bug61605.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #61605 (header_remove() does not remove all headers)
! 3: --SKIPIF--
! 4: <?php include "skipif.inc"; ?>
! 5: --GET--
! 6: foo=bar
! 7: --FILE--
! 8: <?php
! 9: header("A: first");
! 10: header("A: second", TRUE);
! 11: $headers1 = headers_list();
! 12: header("A: third", FALSE);
! 13: $headers2 = headers_list();
! 14: header_remove("A");
! 15: $headers3 = headers_list();
! 16: print_r($headers1);
! 17: print_r($headers2);
! 18: print_r($headers3);
! 19: --EXPECTF--
! 20: Array
! 21: (
! 22: [0] => X-Powered-By: %s
! 23: [1] => A: second
! 24: )
! 25: Array
! 26: (
! 27: [0] => X-Powered-By: %s
! 28: [1] => A: second
! 29: [2] => A: third
! 30: )
! 31: Array
! 32: (
! 33: [0] => X-Powered-By: %s
! 34: )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>