Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24458 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2042 invoked by uid 1010); 18 Jul 2006 10:38:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 2027 invoked from network); 18 Jul 2006 10:38:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2006 10:38:09 -0000 X-Host-Fingerprint: 80.123.98.46 unknown Received: from ([80.123.98.46:17388] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 0B/DB-11992-F0ABCB44 for ; Tue, 18 Jul 2006 06:38:08 -0400 To: internals@lists.php.net,Ilia Alshanetsky Message-ID: <44BCBA2F.3050705@php.net> Date: Tue, 18 Jul 2006 12:38:39 +0200 User-Agent: Thunderbird 1.5.0.4 (X11/20060615) MIME-Version: 1.0 CC: Lukas Smith , Marcus Boerger , zeev@zend.com, Andi Gutmans , Antony Dovgal References: <97.00.12962.7DE73B44@pb1.pair.com> <44B38343.9030403@zend.com> <44.90.38316.ED1C3B44@pb1.pair.com> <1074809844.20060711203909@marcus-boerger.de> <44B41558.1060101@php.net> <44BB607F.1090403@php.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 80.123.98.46 Subject: Re: [PHP-DEV] Re: More valuable error message handling From: mike@php.net (Michael Wallner) 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