Re: Re: More valuable error message handling

From: Date: Tue, 18 Jul 2006 14:23:50 +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-24467@lists.php.net to get a copy of this message
Just because we have objects it does not mean we need to use them all the time. In this instance IMO it makes absolutely no sense to use an object, it only creates extra overhead. If you want the patch to be included in 5.2, please change the function to return an associated array. On 18-Jul-06, at 6:38 AM, Michael Wallner wrote:
Ilia Alshanetsky wrote:
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; One can still cast the stdClass instance to an array. --Michael --PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Ilia Alshanetsky

« previous php.internals (#24467) next »