bug65391.phpt 438 B

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