Bug #73625 [Com]: large output in stderr -> freeze request
| From: | sailormax at inbox dot lv | Date: | Mon, 05 Dec 2016 11:42:07 +0000 |
| Subject: | Bug #73625 [Com]: large output in stderr -> freeze request | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205775@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73625&edit=1
ID: 73625
Comment by: sailormax at inbox dot lv
Reported by: sailormax at inbox dot lv
Summary: large output in stderr -> freeze request
Status: Feedback
Type: Bug
Package: Output Control
Operating System: Windows 10 x64
PHP Version: 7.1.0RC6
Block user comment: N
Private report: N
New Comment:
I run php script from browser.
PHP work via nginx.
browser -> nginx -> php-cgi.exe
PHP was taken from http://windows.php.net/download
VC14 x64 Non Thread Safe
Previous Comments:
------------------------------------------------------------------------
[2016-12-03 23:13:37] ab@php.net
Thanks for the report. I'm not sure to understand the bug - do you run the php script from
bash? Or is that run under FCGI under NGINX? Do you use the official PHP builds?
Thanks.
------------------------------------------------------------------------
[2016-11-30 11:06:00] sailormax at inbox dot lv
Description:
------------
Steps:
1. exec via browser PHP 7.1 test script. (PHP work via nginx as php-cgi.exe)
Using WTServer (https://wtserver.wtriple.com/)
PHP VC14 x64 Non Thread Safe
Test script:
---------------
#!/usr/bin/env php
<?
if (!defined("STDERR"))
define("STDERR", fopen("php://stderr", "w"));
for ($i=0; $i<256; $i++)
fprintf(STDERR, "Missing some file\n");
print "done.";
?>
Expected result:
----------------
#!/usr/bin/env php
done.
Actual result:
--------------
freeze on 227 iteration. 4k buffer overflow?
Plus if decrease count of iterations, string "#!/usr/bin/env php" sometimes output,
sometimes not after each re-save the file.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73625&edit=1