Bug #73625 [NEW]: large output in stderr -> freeze request
From: sailormax at inbox dot lv
Operating system: Windows 10 x64
PHP version: 7.1.0RC6
Package: Output Control
Bug Type: Bug
Bug description:large output in stderr -> freeze request
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 bug report at https://bugs.php.net/bug.php?id=73625&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73625&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73625&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73625&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73625&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73625&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73625&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73625&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73625&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73625&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73625&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73625&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73625&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73625&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73625&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73625&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73625&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73625&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73625&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73625&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73625&r=mysqlcfg
Thread (4 messages)
- sailormax at inbox dot lv