Re: Re: More valuable error message handling
| From: | Antony Dovgal | Date: | Tue, 18 Jul 2006 10:42:14 +0000 |
| Subject: | Re: Re: More valuable error message handling | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-24459@lists.php.net to get a copy of this message | ||
On 18.07.2006 13:38, Michael Wallner wrote:
Ilia Alshanetsky wrote:Definitely not for returning errors. Array perfectly fits here.Looks good to me, although I'd prefer you returned an associated array rather then an object.What for do we have object dereferencing then? As gimmick or buzzword?
$err = error_get_last(); echo $err["message"]; vs. echo error_get_last()->message;And if there was no error before that - what would you get?
One can still cast the stdClass instance to an array.-- Wbr, Antony Dovgal