Re: blocking exec() silently

From: Date: Thu, 13 Sep 2007 21:22:13 +0000
Subject: Re: blocking exec() silently
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-262092@lists.php.net to get a copy of this message
Actually in this example, there is an error handling function provided in the comments. I can't test it right now, but would it be possible that a functions emulates the built-in error handling of php? Or would that need much more lines of code? If this would be the case, then I could modifiy that functions just to not throw the "disabled functions" exceptions! Regards, Samy Nathan Nobbe schrieb:
hmm; you can define you own error handler via set_error_handler()<http://us.php.net/manual/en/function.set-error-handler.php> this would be something like overriding the stock session_handler, or maybe a little similar to extending the stock exception handler. anyway, i think that would be a lot of work just to suppress error output for a single function. i say this because if you define you own error handler you have to support everything in the new handler; you dont get to just change some things and not others. Note: this from the handbook: It is important to remember that the standard PHP error handler is completely bypassed. -nathan On 9/13/07, Samuel Vogel <samy-delux@gmx.de> wrote:
Hey, Thanks for the replies! safe-mode is not an option unfortunately! But changing the Error reporting, is the first thing I wanted to do, but when I asked if this was possible on this list, somebody replied, that it this is not possible! Could you point me to a way, how I can achieve, that the "this function is disabled" error, without suppressing other error messages? Regards, Samy Instruct ICC schrieb:
    
I was going to mentionn
http://php.he.net/manual/en/features.safe-mode.functions.php and ask you if you need any of those functions, but I prefer Nathan's answer. You may be able to set the error reporting in conjunction with disable_functions and be done.
      
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
    


« previous php.general (#262092) next »