Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64415 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51112 invoked from network); 22 Dec 2012 12:30:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Dec 2012 12:30:49 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.210.177 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.210.177 mail-ia0-f177.google.com Received: from [209.85.210.177] ([209.85.210.177:61504] helo=mail-ia0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/70-37236-7F7A5D05 for ; Sat, 22 Dec 2012 07:30:48 -0500 Received: by mail-ia0-f177.google.com with SMTP id u21so4797091ial.36 for ; Sat, 22 Dec 2012 04:30:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=XFJc3N/lTlZDNvX8mMqkT6Ohj+ju1GyGEGX4B290Ft4=; b=NfiPjWrHDkOqjPLQolrksAXhunveHEfOSC4nvdXtiZH8vmeAM0j2qZvYV5BlOfHppv CyE8sfbCD1UtKcMM7Zby/ch+mXffr+/sY2aqyPA/zX9blGQfvrlBdFTeS5byF+99Whcc VLRKqdx3bkbKqSpC5YVEI3yXTJOmq3KPMomcklUvn2lUMPuH60rfaFGJhV68E6GI+d8/ 3QD5GLrsuMv5h5Z+L413UVAbvVX4GFxrBzeduOLN/MbheWwOO05GoFQz+3Ca2nJyJrps +dTFaNBUGATigbxy4HjSzjgKvN1w4Z6pte/dbygHS8JRcjLlrYeOsNkkyDMAtaMGwI8U XEdQ== X-Received: by 10.50.53.226 with SMTP id e2mr11259436igp.92.1356179444705; Sat, 22 Dec 2012 04:30:44 -0800 (PST) Received: from [192.168.2.140] (CPE00131063dcac-CM0011aec551ea.cpe.net.cable.rogers.com. [174.113.209.222]) by mx.google.com with ESMTPS id s3sm11912970igb.14.2012.12.22.04.30.43 (version=SSLv3 cipher=OTHER); Sat, 22 Dec 2012 04:30:44 -0800 (PST) Message-ID: <50D5A7F3.9010103@lerdorf.com> Date: Sat, 22 Dec 2012 07:30:43 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Dmitry Stogov CC: PHP Internals References: <4B729EED-78A8-4E59-B954-5A74C5585E05@stefan-marr.de> In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnHH4W52pDscr+buXneRfgp0MySNHSWHcnsjXVGTlF/S0dYmzYZXk+OQjYVS0ZPzoQ0/1tA Subject: Re: [PHP-DEV] Complete traits redesign for 5.5 From: rasmus@lerdorf.com (Rasmus Lerdorf) On 12/21/2012 09:28 AM, Dmitry Stogov wrote: > Hi, > > This is more or less final proposed patch for 5.4 > > http://pastebin.com/ceiWWD4N > > It fixes implementation mistakes and makes the whole implementation much > simpler. > I hope I didn't introduce new bugs :) > Of course I checked it with PHP test suite, but it would be great to > test it with real life applications that use traits. > The patch keeps binary compatibility, and changes only error messages > and behavior in error situations. > It must not affect any applications. > > I like to commit the patch in 5.4 and above on next week. > > I would simplify the trait implementation much more, but the conflict > resolution rules allows to make so many tricks that all needs to be > checked :( > Anyway, I'll think about it a bit more. > > Any feedback is welcome. You keep spelling "abstract" as "abstarct" throughout the patch. But it looks good to me. I always like it when a patch removes more lines than it adds. -Rasmus