Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56873 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27000 invoked from network); 12 Dec 2011 00:36:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2011 00:36:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:64697] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/15-21075-C8C45EE4 for ; Sun, 11 Dec 2011 19:36:29 -0500 Received: by ghbg16 with SMTP id g16so4079312ghb.29 for ; Sun, 11 Dec 2011 16:36:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=FUQj1cW2O+V60Fyt6hOUJZ0PkKBAEVSo02Nhx2alT/I=; b=dhs117w8n3oN0NEWT/SuhUZTxsNGWorGBd6/Avj9vG5BWGKGMri3+QrtIDM2g8OpYf er0rMZZNam4pnHTk23vMRrAt1BX19cDwO+oVMpv2oN2Cgz9FVlkYsoWaSiLXc1HFu33T k2Bpfdm0K2HNUBfd2B6SsIS5Y2lSz4zzOvY2o= MIME-Version: 1.0 Received: by 10.236.128.197 with SMTP id f45mr16112170yhi.44.1323650181146; Sun, 11 Dec 2011 16:36:21 -0800 (PST) Received: by 10.146.204.6 with HTTP; Sun, 11 Dec 2011 16:36:21 -0800 (PST) In-Reply-To: <9570D903A3BECE4092E924C2985CE4853995589C@MBX202.domain.local> References: <9570D903A3BECE4092E924C2985CE485399554D7@MBX202.domain.local> <7070130643313812382@unknownmsgid> <9570D903A3BECE4092E924C2985CE4853995589C@MBX202.domain.local> Date: Mon, 12 Dec 2011 01:36:21 +0100 Message-ID: To: Clint M Priest Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Accessors v2 Patch From: pierre.php@gmail.com (Pierre Joye) Hi Clint, Thanks for the updated patch :) Some suggestions (did not test it yet only review it), - add test cases for non public property (private, protected) - show examples of the concept of readonly property (as it is allowed in the C# equivalent I would also suggest to either take over the RFC (contact the original author) or create your own to update it with a full list of examples, documentation, and all necessary information. This is a complex task with many possible (edge) cases. An updated RFC is a must to be able to discuss such additions. Cheers, On Mon, Dec 12, 2011 at 1:21 AM, Clint M Priest wrote= : > https://bugs.php.net/patch-display.php?bug_id=3D49526&patch=3Dv2.1&revisi= on=3Dlatest > > Alright, nevermind on the failing tests, figured that out. =A0I didn't re= alize the test structure doesn't =A0indicate that it was segfaulting, that = fixed all of the failing tests. > > So... I guess this patch is up for discussion? > > I don't presently have any static getters implemented, as best I can tell= it would require some changes to opcodes, I didn't dive into anything besi= des exploration there. > > -Clint > > -----Original Message----- > From: Will Fitch [mailto:will.fitch@gmail.com] > Sent: Sunday, December 11, 2011 1:41 PM > To: Clint M Priest > Cc: internals@lists.php.net > Subject: Re: [PHP-DEV] Accessors v2 Patch > > Much better implementation. > > As for the failed tests, I would double check and make sure you don't hav= e any stray debug statements (e.g. printf). > > Sent from my iPhone > > On Dec 11, 2011, at 2:27 PM, Clint M Priest wrote: > >> https://bugs.php.net/patch-display.php?bug_id=3D49526&patch=3Daccessor_v= 2. >> diff&revision=3Dlatest >> >> I rewrote part of how it handles the job due to abysmal performance of v= ersion 1. =A0This one is near the same performance as without the code chan= ges using __get() and is actually faster in some cases (public getter). >> >> I also checked all the tests and fixed the issues I found related. >> >> There is however some strange behavior that I do not understand. =A0For = some reason if I run all of the tests, 100+ or so will fail. =A0If I have t= he test script write those failed tests to a file and just run those tests,= all but four work fine. =A0It appears to be something to do with line endi= ngs, in other cases the output does not match expected because of the addit= ion of 'unicode' to the output. =A0I've no idea what's going on here but af= ter 3 days of mucking around, I can't find a solution as to why this is occ= urring. >> >> These failures do not occur on a fresh checkout but nothing I've changed= should be causing any of the issues, just no idea here, any help would be = appreciated. >> >> Felipe: I could not find any segmentation fault tests from before when y= ou posted, nor now. =A0Are you still seeing segmentation faults? >> >> Thoughts? >> >> -Clint >> --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org