Annotation of embedaddon/php/ext/zlib/tests/bug65391.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #65391 (Unable to send vary header user-agent when ob_start('ob_gzhandler') is called)
        !             3: --SKIPIF--
        !             4: <?php
        !             5: extension_loaded("zlib") or die("skip need zlib");
        !             6: ?>
        !             7: --GET--
        !             8: dummy=1
        !             9: --FILE--
        !            10: <?php
        !            11: header("Vary: Cookie");
        !            12: ob_start("ob_gzhandler");
        !            13: 
        !            14: // run-tests cannot test for a multiple Vary header
        !            15: ob_flush();
        !            16: print_r(headers_list());
        !            17: 
        !            18: ?>
        !            19: Done
        !            20: --EXPECTF--
        !            21: Array
        !            22: (
        !            23:     [0] => X-Powered-By: PHP/%s
        !            24:     [1] => Vary: Cookie
        !            25:     [2] => Vary: Accept-Encoding
        !            26: )
        !            27: Done
        !            28: 

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