Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50347 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85764 invoked from network); 18 Nov 2010 15:02:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2010 15:02:00 -0000 Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:33224] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/23-01108-7EF35EC4 for ; Thu, 18 Nov 2010 10:01:59 -0500 Received: by fxm16 with SMTP id 16so1185117fxm.29 for ; Thu, 18 Nov 2010 07:01:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=P4Jai8y2nSnMYec8zpBBxNcCC4oNn1QtpbEruvFzIdA=; b=W+79wbmCEodAqgrIddfbtxXInuU9o1jlxgqOZJEYlIS/ARxcJaZ7ngRYJRi92wt2IT vsotI8pIiHGTecHCkCn7DsGpikxQPFcNQhiKdP9b/4CZudQ14c7d+0ADqBwSgHxii3Lu oY7e+ggAuPlZ5wh9wZNfwiVkaVJqe8/wPs/zE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=skHopjBi8TvhPF/TAspexepe3Xcs1tFW22DYyDxGoh4s/QYtoUYe5rOSGLGFgdlnvT GL037x53+I3vFGog7aW+2OE4X6ZeBkGx+1PV2cFzbThYjARbx0VWOvgE6Mb/Aq85nGG6 7O87SZejZwnY3YmXE/U/vtIarJq3DAyd267ss= MIME-Version: 1.0 Received: by 10.223.86.4 with SMTP id q4mr678247fal.20.1290092516134; Thu, 18 Nov 2010 07:01:56 -0800 (PST) Sender: patrick.allaert@gmail.com Received: by 10.223.83.194 with HTTP; Thu, 18 Nov 2010 07:01:56 -0800 (PST) Date: Thu, 18 Nov 2010 16:01:56 +0100 X-Google-Sender-Auth: 9k0FsDRTAnpmD2Uc228JIUoo_YI Message-ID: To: PHP Development Content-Type: text/plain; charset=UTF-8 Subject: Trait behavior when providing a new name while no conflict exists From: patrickallaert@php.net (Patrick ALLAERT) Hi, Is this intended not being able to give a new name to a method even in case of no conflict? In the following example, I try to provide the name "sayIt" additionally to "saySomething" from trait "Hello": The following error message is shown while running it: Fatal error: Failed to add aliased trait method (sayIt) to the trait table. There is probably already a trait method with the same name in %s on line %d The error message might be misleading even if it should only be available in case of conflict. Regards, -- Patrick Allaert --- http://code.google.com/p/peclapm/ - Alternative PHP Monitor