note 29103 rejected from function.set-error-handler by nicos

From: Date: Tue, 04 Feb 2003 00:26:06 +0000
Subject: note 29103 rejected from function.set-error-handler by nicos
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-43352@lists.php.net to get a copy of this message
// If you have time to loose this function il a good example Class __TError{ Function Throw(){ trigger_error("Some very interesting error",E_USER_NOTICE); } } Class __TErrorManager{ Function ErrorCallBack($errno,$errmsg){ echo "Youpie ??"; } } Set_error_handler(array("__TErrorManager","ErrorCallBack")); // This code dosen't look bad // So let's do some test // First Test $a = new __TError(); $a->Throw(); for($i = 0;$i < 5;$i += 1) echo "I wana die"; // <-- This one fails // Second Test $a = new __TError(); $a->Throw(); // <-- This One is ok //Third Test __TError::Throw(); // <-- fails. If somebody's understand .. (Test on php4.3.0 on win32)

« previous php.notes (#43352) next »