From:             weirdan at gmail dot com
Operating system: Debian GNU/Linux
PHP version:      5.4.15
Package:          CGI/CLI related
Bug Type:         Bug
Bug description:'Could not open input file' error message goes to STDOUT

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 bug report at https://bugs.php.net/bug.php?id=64882&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64882&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64882&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64882&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64882&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64882&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64882&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64882&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64882&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64882&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64882&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64882&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64882&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64882&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64882&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64882&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64882&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64882&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64882&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64882&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64882&r=mysqlcfg

Reply via email to