[PHP-DEV] Re: Bug #491 Updated: Can't get rid of file system error message when file doesn't exist From: Kenneth E. Hapeman (khapeman <email protected>)
Date: 06/29/98

Thank you very much for you help on this and other problems I have
previously reported!

Bug Database wrote:
>
> ID: 491
> Updated by: zeev
> Reported By: khapeman <email protected>
> 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 =  <email protected>("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

-- 

Ken ___________________________________________________________________ Kenneth E. Hapeman E-mail: khapeman <email protected> Director, Center for Information Technology Services (CITS) Skidmore College Phone: 518-580-5930 Saratoga Springs, NY 12866 Fax: 518-580-5936 ___________________________________________________________________