Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24467 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56598 invoked by uid 1010); 18 Jul 2006 14:44:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 56583 invoked from network); 18 Jul 2006 14:44:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Jul 2006 14:44:05 -0000 Authentication-Results: pb1.pair.com header.from=iliaal@gmail.com; domainkeys=good DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: iliaal@gmail.com X-Host-Fingerprint: 64.233.166.182 py-out-1112.google.com Linux 2.4/2.6 Received: from ([64.233.166.182:39625] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 3E/98-11992-20FECB44 for ; Tue, 18 Jul 2006 10:24:03 -0400 Received: by py-out-1112.google.com with SMTP id 39so1834337pyu for ; Tue, 18 Jul 2006 07:23:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:from:subject:date:to:x-mailer:sender; b=bYUA8HNdG6FOreGG+Z7ejkRtt3ikQE7CM9E4mGIwZUjbl7c9+ROMsUKIOO2i66FHv2YgcNvAX578kdZ2XQbL46zM1GbjJTryy7gkm9OO/UM7X238QuKe9+xzcjJhUFNVgLRUSE4DnTSO8oxQ5mLYr2PYi59uQXqL9B1HzxyYses= Received: by 10.35.78.13 with SMTP id f13mr5565450pyl; Tue, 18 Jul 2006 07:23:58 -0700 (PDT) Received: from ?192.168.1.6? ( [72.59.8.142]) by mx.gmail.com with ESMTP id e16sm646484qbe.2006.07.18.07.23.52; Tue, 18 Jul 2006 07:23:54 -0700 (PDT) In-Reply-To: <44BCBA2F.3050705@php.net> 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> <44BCBA2F.3050705@php.net> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/alternative; boundary=Apple-Mail-17-979254869 Message-ID: <3C98DF5D-F72D-4730-B00B-32011AA6DB5C@prohost.org> Cc: internals@lists.php.net, Lukas Smith , Marcus Boerger , zeev@zend.com, Andi Gutmans , Antony Dovgal Date: Tue, 18 Jul 2006 10:23:50 -0400 To: Michael Wallner X-Mailer: Apple Mail (2.752.2) Sender: Ilia Alshanetsky Subject: Re: [PHP-DEV] Re: More valuable error message handling From: ilia@prohost.org (Ilia Alshanetsky) --Apple-Mail-17-979254869 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed 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 --Apple-Mail-17-979254869--