previousPEAR_ErrorStack::push (Previous) (Next) PEAR_ErrorStack::raiseErrornext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

PEAR_ErrorStack::pushCallback

PEAR_ErrorStack::pushCallback() – Définit une erreur de callback. Si c'est un callback valide, il sera appelé à chaque ajout d'erreur sur la pile. La valeur retournée sera utilisée pour détermine si l'on doit autoriser l'ajout de l'erreur à la pile ou si l'on doit la loguer.

Synopsis

require_once 'PEAR/ErrorStack.php';

void PEAR_ErrorStack::pushCallback ( string|array $cb )

Description

La valeur retournée doit être une des constantes PEAR_ERRORSTACK_*.

Cette fonctionnalité peut être utilisée pour simuler un pushErrorHandling PEAR, et le mode PEAR_ERROR_CALLBACK mode, sans affecter l'intégrité de la pile d'erreur ou de log.

Parameter

string|array $cb

Throws

No exceptions thrown.

Note

This function can not be called statically.

previousPEAR_ErrorStack::push (Previous) (Next) PEAR_ErrorStack::raiseErrornext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.