PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > Re: [PHP] blocking exec() silently
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: [PHP] blocking exec() silently

Réponse
 
LinkBack Outils de la discussion
Vieux 13/09/2007, 19h45   #1
Samuel Vogel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] blocking exec() silently

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....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.

  Réponse avec citation
Vieux 13/09/2007, 21h16   #2
Nathan Nobbe
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] blocking exec() silently

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....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
>
>


  Réponse avec citation
Vieux 13/09/2007, 22h22   #3
Samuel Vogel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] blocking exec() silently

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....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
>>
>>
>>

>
>

  Réponse avec citation
Vieux 14/09/2007, 01h05   #4
Chris
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] blocking exec() silently

Samuel Vogel 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?


You'll need to overwrite the set_error_handler (see
http://php.net/set_error_handler) and use auto_prepend_file - see
http://www.php.net/manual/en/ini.core.php .

--
Postgresql & php tutorials
http://www.designmagick.com/
  Réponse avec citation
Vieux 14/09/2007, 16h49   #5
Instruct ICC
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: [PHP] blocking exec() silently


> From: samy-delux@gmx.de
> Actually in this example, there is an error handling function provided
> in the comments.


I'm commenting again because I want to stress the distinctions between errors E_ERROR, warnings E_WARNING, *USER* and other "messages/notices/etc.":
http://php.net/manual/en/ref.errorfu...func.constants
http://php.net/manual/en/function.trigger-error.php

It may you better design what you want on or off (and also versus logged somewhere else as I mentioned in my last post).

__________________________________________________ _______________
Capture your memories in an online journal!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h14.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11639 seconds with 13 queries