I called
Code: Select all
<?php
PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array(&$this, 'addElement'));
?>But if I raise some errors (just by typing raiseError(...) in some of my classes), none of them are added to my Container. It seems as if they weren´t given to my function, because I can add them successfully by hand with
Code: Select all
<?php
$ErrorContainer->addElement(PEAR::raiseError('Error-Objekt'));
?>