Re: RE: Error Reporting for file commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2006-09-25 at 11:53 +0100, James Nunnerley wrote:
> Sometime ago, I posted the email below, regarding some problems with a file
> manager we have developed for our users.
> 
> The problem still exists, and is now starting to cause "complaints".  Mainly
> from my manager, who's fed-up with receiving the error emails from the
> system, but it must be annoying users!
> 
> The scenario is; we have a fairly large Linux cluster, with a RAID disc.
> Obviously because of the number of disc calls, there's a fair amount of
> caching.
> 
> We think the problem is related to this, and would ideally like purely to
> suppress the error, as it's normally when the script is trying to delete
> something already deleted.
> 
> I've tried turning off errors (error_reporting(0)) and indeed using @ on all
> php file system calls, but it still triggers an error.
> 
> Does anyone know of any issues with suppressing errors on the following
> functions?
> - unlink
> - mkdir
> - copy
> - scandir
> 
> All of these fail sporadically, even with the above error stuff turned off,
> and trigger an error.
> 
> Anyone's thoughts gratefully received....

Are you using a custom error handler? If so your error handler has to
properly handle errors that are incoming with the supression operator
enabled.

You can detect suppression for any given error by checking if
error_reporting() is set to 0.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux