|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73625 large output in stderr -> freeze request
Submitted: 2016-11-30 11:06 UTC Modified: 2016-12-11 04:22 UTC
From: sailormax at inbox dot lv Assigned:
Status: No Feedback Package: Output Control
PHP Version: 7.1.0RC6 OS: Windows 10 x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
42 - 27 = ?
Subscribe to this entry?

 [2016-11-30 11:06 UTC] sailormax at inbox dot lv
1. exec via browser PHP 7.1 test script. (PHP work via nginx as php-cgi.exe)

Using WTServer (
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

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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-03 23:13 UTC]
-Status: Open +Status: Feedback
 [2016-12-03 23:13 UTC]
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?

 [2016-12-05 11:42 UTC] sailormax at inbox dot lv
I run php script from browser.
PHP work via nginx.
browser -> nginx -> php-cgi.exe

PHP was taken from VC14 x64 Non Thread Safe
 [2016-12-11 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Sep 29 08:03:43 2022 UTC