Bug #73625 [Opn->Fbk]: large output in stderr -> freeze request

From: Date: Sat, 03 Dec 2016 23:13:38 +0000
Subject: Bug #73625 [Opn->Fbk]: large output in stderr -> freeze request
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205752@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 Updated by: ab@php.net Reported by: sailormax at inbox dot lv Summary: large output in stderr -> freeze request -Status: Open +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: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#205752) next »