/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
sapi/cli/tests/bug64878.phpt
19 строк
428 B
Christoph M. Becker
Fix #64878: 304 responses return Content-Type header
27 июн 2015, 15:28
27 июн 2015, 15:28
1920ba6
Код
Авторство
О чём код?
--TEST-- Bug #64878 (304 responses return Content-Type header) --INI-- allow_url_fopen=1 --SKIPIF-- <?php include "skipif.inc"; ?> --FILE-- <?php include "php_cli_server.inc"; php_cli_server_start('header("HTTP/1.1 304 Not Modified")', null); $headers = get_headers('http://' . PHP_CLI_SERVER_ADDRESS); echo count(array_filter($headers, function ($value) { return stripos($value, 'Content-Type') === 0; })); ?> --EXPECT-- 0