Edit report at https://bugs.php.net/bug.php?id=64152&edit=1
ID: 64152
User updated by: mmicael at gmail dot com
Reported by: mmicael at gmail dot com
Summary: php return wrong string with HEAD Request Method
Status: Not a bug
Type: Bug
Package: Output Control
Operating System: linux
PHP Version: 5.4.11
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2013-02-07 15:06:21] mmicael at gmail dot com
I am using php-fpm
------------------------------------------------------------------------
[2013-02-07 15:03:38] mike@php.net
Which SAPI?
Are you sure, you don't see error_log output there?
------------------------------------------------------------------------
[2013-02-07 14:59:42] mmicael at gmail dot com
it's only doing a HEAD request_method with curl -I for exemple
in php 5.2 and 5.3, the script is stopped after the echo $string;
in php 5.4, he continue bug the ob_get_contents after the echo $string; return
empty response
------------------------------------------------------------------------
[2013-02-07 14:54:52] mike@php.net
I cannot see a bug here, sure execution of the script continues...
------------------------------------------------------------------------
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