File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / zlib / tests / bug65391.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 08:02:43 2013 UTC (10 years, 9 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, HEAD
v 5.4.20

--TEST--
Bug #65391 (Unable to send vary header user-agent when ob_start('ob_gzhandler') is called)
--SKIPIF--
<?php
extension_loaded("zlib") or die("skip need zlib");
?>
--GET--
dummy=1
--FILE--
<?php
header("Vary: Cookie");
ob_start("ob_gzhandler");

// run-tests cannot test for a multiple Vary header
ob_flush();
print_r(headers_list());

?>
Done
--EXPECTF--
Array
(
    [0] => X-Powered-By: PHP/%s
    [1] => Vary: Cookie
    [2] => Vary: Accept-Encoding
)
Done


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>