Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51208 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99049 invoked from network); 3 Jan 2011 09:35:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jan 2011 09:35:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=mail_ben_schmidt@yahoo.com.au; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=mail_ben_schmidt@yahoo.com.au; sender-id=unknown; domainkeys=good Received-SPF: error (pb1.pair.com: domain yahoo.com.au from 98.139.53.206 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mail_ben_schmidt@yahoo.com.au X-Host-Fingerprint: 98.139.53.206 nm4-vm0.bullet.mail.ac4.yahoo.com Received: from [98.139.53.206] ([98.139.53.206:36983] helo=nm4-vm0.bullet.mail.ac4.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/30-31726-C68912D4 for ; Mon, 03 Jan 2011 04:35:40 -0500 Received: from [98.139.52.190] by nm4.bullet.mail.ac4.yahoo.com with NNFMP; 03 Jan 2011 09:35:37 -0000 Received: from [98.139.52.167] by tm3.bullet.mail.ac4.yahoo.com with NNFMP; 03 Jan 2011 09:35:37 -0000 Received: from [127.0.0.1] by omp1050.mail.ac4.yahoo.com with NNFMP; 03 Jan 2011 09:35:37 -0000 X-Yahoo-Newman-Id: 844376.9516.bm@omp1050.mail.ac4.yahoo.com Received: (qmail 84986 invoked from network); 3 Jan 2011 09:35:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=u4fe0OzxjOT/sHHJAwT071r2Qup5/pI5o6hgewm9yciKQI/5Tnba+4ydY+8zGSoqfHOXyBRXPmUfUmJ0L5mG53gmwK/5stOB0LVB8VGF03k3tHq3YbAh8ISlk5BP27x9ua2wFTQLbnYvYLSQ5EkRnjdf2FED/W1vQYXByK1MHvU= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s1024; t=1294047337; bh=GENSZ85YU7u1o4zR8n/4PeG2Z2OI0TtkqXna/Uq4BXQ=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=jpVqE5JsDKBk2FdvzJqmWswWL6SyFmqiWsyhTXrmmWGtNrs2JGKAEuZXkNkD5pgJUmq7WAreCXgUf3q+1XEooqw4luDdvP0fp+h1KqM12IvsWnzvmkJY94nTTUCCSOxR1X/ccMyKM8mP3CLL/Ejs56VtNb1DAv9vrf/03lt5Blk= Received: from thought.local (mail_ben_schmidt@124.168.74.140 with plain) by smtp129.mail.mud.yahoo.com with SMTP; 03 Jan 2011 01:35:37 -0800 PST X-Yahoo-SMTP: enFMnPSswBAexaHyzgobwuUTrYOhZdJ0KRA2SjA- X-YMail-OSG: APGzmvUVM1nKSeJx2mNXAPH6CJSMx2KjUu09lUHLWndZW0Z 2e2krblcTKI8cUXMqfp4P6mweitG4fHyY39gjjYLJVc4CBMswhBlpIDbrovt 4OHAwdgJbRKXsDuhlaXW01sInDwVdUvZQqluB4kE3mOFvU4M6rfjbTl11Bor 2_DaGxf314CoCrjVyoT8t7uJFQITMr4gfoM2_fDtSr_KUJ8_20IxKxmGUOa_ OEtADEezno5uPNpFijKsQSt3mF5TBrsJh2d8zc4EI1IitEly4hDyrQHQQmlu Xbs6PCSc7qdQiaLush5daHk2VOUvWI08theAzWrr__9grIpIruQ4V9_0NJYM YbMD.5pPtVLQqN38A_Q-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4D219866.1020606@yahoo.com.au> Date: Mon, 03 Jan 2011 20:35:34 +1100 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 ThunderBrowse/3.3.4 MIME-Version: 1.0 To: Stefan Marr CC: internals@lists.php.net References: <89C52156-CF92-4DDB-8BA4-4ABF6883512C@stefan-marr.de> <4D21415A.10002@gmail.com> <4D21658A.2030208@yahoo.com.au> <4D219123.2080803@yahoo.com.au> <9F94CB7F-AEC1-4E54-B4E5-29C3E55DCACA@stefan-marr.de> In-Reply-To: <9F94CB7F-AEC1-4E54-B4E5-29C3E55DCACA@stefan-marr.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Traits and Properties From: mail_ben_schmidt@yahoo.com.au (Ben Schmidt) Hi, Stefan, On 3/01/11 8:16 PM, Stefan Marr wrote: > On 03 Jan 2011, at 10:04, Ben Schmidt wrote: >> In this email thread you seemed to be saying that properties defined in >> traits are completely ignored, but in the RFC and svn it seems to be >> saying that properties in traits are not ignored, but are merged into >> the class and/or trigger errors/warnings. So, which is it? Ignored or >> not? Or is some aspect of them ignored and some aspect not? > > The RFC was discussed on this list, and the RFC should explain what > the current state of the implementation is. So, the RFC and the > implementation are the specifications. In case they differ it has to > be fixed. OK. So this comment from your email is outdated?: > However, at the moment it is possible to define properties in a trait: > > trait Foo { > private $a; > public $foo; > } > > For the moment, that information is completely ignored, thus: > > class Bar { > use Foo; > } > property_exists('Bar', 'a') === false in light of this test: http://svn.php.net/viewvc/php/php-src/trunk/Zend/tests/traits/property002.phpt?view=markup&pathrev=306476 Maybe the only thing that was confusing is that somebody replied to an old email? Ben.