Req #71880 [NEW]: Optionally disable warnings when writing to STDOUT
From: haertl dot mike at gmail dot com
Operating system: Linux
PHP version: 5.6.19
Package: FPM related
Bug Type: Feature/Change Request
Bug description:Optionally disable warnings when writing to STDOUT
Description:
------------
When you write to STDOUT PHP-FPM creates a warning.
This is a problem when you want to run PHP-FPM in a docker container.
It's common pratice for docker containers to write any log output to
STDOUT/STDERR.
If you do this with e.g. with the official php-fpm docker image, you'll
end up with tons of ugly warnings like above. Right now there's no way
to get rid of these warnings. It will also split up a single multi-line
output into several distinct warnings.
Related issue at docker:
https://github.com/docker-library/php/issues/207
Test script:
---------------
$fp = @fopen('php://stdout','w');
fwrite($fp, "my output string...");
Expected result:
----------------
There should be an ini-Setting to turn off these warnings.
Actual result:
--------------
WARNING: [pool www] child 12 said into stdout: "my output string..."
--
Edit bug report at https://bugs.php.net/bug.php?id=71880&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71880&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71880&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71880&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71880&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71880&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71880&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71880&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71880&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71880&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71880&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71880&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71880&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71880&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71880&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71880&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71880&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71880&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71880&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71880&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71880&r=mysqlcfg
Thread (16 messages)
- haertl dot mike at gmail dot com
- copong at gmail dot comReq #71880 [Com]: Optionally disable warnings when writing to STDOUT
- inefedor at gmail dot comReq #71880 [Com]: Optionally disable warnings when writing to STDOUT
- mark dot sagikazar at gmail dot comReq #71880 [Com]: Optionally disable warnings when writing to STDOUT
- haertl dot mike at gmail dot comReq #71880 [Opn]: Optionally disable warnings when writing to STDOUT
- mark dot sagikazar at gmail dot comReq #71880 [Com]: Optionally disable warnings when writing to STDOUT
- haertl dot mike at gmail dot comReq #71880 [Opn]: Optionally disable warnings when writing to STDOUT
- mark dot sagikazar at gmail dot comReq #71880 [Com]: Optionally disable warnings when writing to STDOUT
- dvalentiate at gmail dot comReq #71880 [Com]: Optionally disable warnings when writing to STDOUT
- bugs dot php dot net at mog dot seReq #71880 [Com]: Optionally disable warnings when writing to STDOUT
- bugs dot php dot net at mog dot seReq #71880 [Com]: Optionally disable warnings when writing to STDOUT
- haertl dot mike at gmail dot comReq #71880 [Com]: Optionally disable warnings when writing to STDOUT
- davi87 at protonmail dot comReq #71880 [Com]: Optionally disable warnings when writing to STDOUT
- nikic@php.netReq #71880 [Opn]: Optionally disable warnings when writing to STDOUT
- haertl dot mike at gmail dot comReq #71880 [Com]: Optionally disable warnings when writing to STDOUT
- nikic@php.netReq #71880 [Opn->Csd]: Optionally disable warnings when writing to STDOUT