Bug #64882 [Opn->Fbk]: 'Could not open input file' error message goes to STDOUT
| From: | aharvey@php.net | Date: | Thu, 23 May 2013 18:30:40 +0000 |
| Subject: | Bug #64882 [Opn->Fbk]: 'Could not open input file' error message goes to STDOUT | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-179097@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64882&edit=1
ID: 64882
Updated by: aharvey@php.net
Reported by: weirdan at gmail dot com
Summary: 'Could not open input file' error message goes to
STDOUT
-Status: Open
+Status: Feedback
Type: Bug
Package: CGI/CLI related
Operating System: Debian GNU/Linux
PHP Version: 5.4.15
Block user comment: N
Private report: N
New Comment:
This is controlled by the display_errors and error_log configuration variables: what do you get on
each version if you run php -i | egrep '(display_errors|error_log)' ?
For example, I get:
adamh@swiftdesk7:/tmp$ php -i | egrep '(display_errors|error_log)'
display_errors => STDOUT => STDOUT
error_log => no value => no value
And as you'd expect, errors are output to stdout.
Previous Comments:
------------------------------------------------------------------------
[2013-05-20 14:13:49] weirdan at gmail dot com
Those folders contain vanilla PHP code, with NO Debian patches applied.
------------------------------------------------------------------------
[2013-05-20 14:08:21] weirdan at gmail dot com
Description:
------------
Error messages in CLI should go to STDERR. This was the case with 5.3.x, but it
doesn't seem to be the case with 5.4.*
Test script:
---------------
#!/bin/bash
for dir in
ls -d php-5*|grep -v tar; do
echo -n "$dir: ";
# the following line should output nothing
$dir/sapi/cli/php -n $(tempfile).php 2>/dev/null;
echo;
done
Expected result:
----------------
php-5.3.25:
php-5.4.0:
php-5.4.15:
php-5.4.7:
Actual result:
--------------
php-5.3.25:
php-5.4.0: Could not open input file: /tmp/filelm8WcG.php
php-5.4.15: Could not open input file: /tmp/filehmMkOG.php
php-5.4.7: Could not open input file: /tmp/fileSfJZ4E.php
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64882&edit=1