[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-internals
Subject:    [PHP-DEV] Bug #491 Updated: Can't get rid of file system error message when file doesn't exist
From:       Bug Database <php-dev () php ! iquest ! net>
Date:       1998-06-29 17:27:29
[Download RAW message or body]

ID: 491
Updated by: zeev
Reported By: khapeman@skidmore.edu
Status: Closed
Bug Type: Misbehaving function
Assigned To: 
Comments:

ls writes to stderr, which isn't piped by popen(), which
results in this behavior.  There's nothing you can do about
it at the PHP level.

You can, however, ask the shell to do the job for you,
by doing something like:

$tst = @exec("ls dir/transactions1/junk.170_* 2> /dev/null");

which tells sh to redirect all stderr output to /dev/null.


Full Bug description available at: http://ca.php.net/bugs.php3?id=491

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic