Edit report at https://bugs.php.net/bug.php?id=64152&edit=1
ID: 64152
Updated by: mike@php.net
Reported by: mmicael at gmail dot com
Summary: php return wrong string with HEAD Request Method
-Status: Assigned
+Status: Closed
Type: Bug
Package: Output Control
Operating System: linux
PHP Version: 5.4.11
Assigned To: mike
Block user comment: N
Private report: N
New Comment:
Behaviour sanitised in PHP-7. See https://wiki.php.net/rfc/continue_ob
Previous Comments:
------------------------------------------------------------------------
[2014-11-19 09:06:25] mike@php.net
Related To: Bug #67381
------------------------------------------------------------------------
[2013-03-27 14:04:38] mmicael at gmail dot com
Hi,
did you find a patch to correct this bug ?
Micael
------------------------------------------------------------------------
[2013-02-07 15:45:16] mike@php.net
Ha, now I understand ;) Yes, this could be a regression.
php_output_header() checks headers_only and sets PHP_OUTPUT_DISABLED.
This leads to php_output_write() return immediately.
------------------------------------------------------------------------
[2013-02-07 15:23:20] mmicael at gmail dot com
yes the script continue, but it log
1-test1
2-test1
as we do a second ob_start ob_get_contents with an echo test2, after the echo
$string, we should have in the logs
1-test1
2-test1test2
------------------------------------------------------------------------
[2013-02-07 15:16:06] mike@php.net
Cannot reproduce.
I get no output with php-fpm in the response, but in the error_log.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=64152
--
Edit this bug report at https://bugs.php.net/bug.php?id=64152&edit=1