Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38596 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15055 invoked from network); 24 Jun 2008 18:04:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jun 2008 18:04:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=ekneuss@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ekneuss@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.170.190 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ekneuss@gmail.com X-Host-Fingerprint: 64.233.170.190 rn-out-0910.google.com Received: from [64.233.170.190] ([64.233.170.190:55028] helo=rn-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/7A-17106-03731684 for ; Tue, 24 Jun 2008 14:04:33 -0400 Received: by rn-out-0910.google.com with SMTP id k40so678975rnd.0 for ; Tue, 24 Jun 2008 11:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=7a12cArOyWPGoQ7zL2IJK/1TLHR5YSf7z4tRFT9q5m8=; b=SiNW4EVB1LQAzbjiC89YS5678VNNxM/Bn2TW96q2ZLy8ak4MBZj5LqkMOn8sVmMqSz drUsiDow9q/oXm10mMW6oIDETwdjfn9rmwebn9ERD420VRw8Ai4uMUburAYo04QbvfEu EfFHaZSEbb/QfKpPN5E0uJih4d3TSFP8wkK5w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=rq3ukabbop7XG0aoEN3DnM836Hgm6IFqeaYvru+RyFWnuWXBMbXph4/EL/iFk3BSUS jTC7KLFDeQjMgZQYJ7Yvd2VNIPog23p3ysmeLt0XyYin5M7f9WxTEVczipm5jJzW0RHl I0YDfjXJfTBuiIZLySCCPyIL0CwYjqbhqcD40= Received: by 10.142.48.3 with SMTP id v3mr6016138wfv.124.1214330669309; Tue, 24 Jun 2008 11:04:29 -0700 (PDT) Received: by 10.151.83.19 with HTTP; Tue, 24 Jun 2008 11:04:29 -0700 (PDT) Message-ID: Date: Tue, 24 Jun 2008 20:04:29 +0200 Sender: ekneuss@gmail.com To: "Stanislav Malyshev" Cc: "Alexey Zakhlestin" , "PHP internals" In-Reply-To: <486122CC.5050303@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <485C5081.1050609@zend.com> <485FDBE2.6020409@zend.com> <486122CC.5050303@zend.com> X-Google-Sender-Auth: 039ea021c71160d0 Subject: Re: [PHP-DEV] LSB forward_static_call() From: colder@php.net ("Etienne Kneuss") Hello, With such example, using Users:: over parent:: actually makes sense as your intent is to request something strictly related to Users, and you're not expecting any inheritance. Sure, introducing a difference is not a perfect solution, but the general feeling is that it's the best at hand. No need to argue over and over, I'll produce a patch based on the (probably) outdated one done by Mike and have it committed if no new strong feelings against it raises. Regards, On Tue, Jun 24, 2008 at 6:37 PM, Stanislav Malyshev wrote: > Hi! > >> in my ActiveRecord, table for DepartmentUsers would actually exist ;) > > Even worse. All the data is in the Users table, DepartmentUsers is just a > functionality extension. So you'll be operating on wrong data. > >> I am just looking for consistency. I am expecting get_called_class() >> to work as a static analog of get_class(this) > > Can we PLEASE stop using "consistency" to mean "do as I say"? What > "consistency" is in changing way parent:: worked for years, making parent:: > and class:: work differently and disabling non-forwarding call? Consistency > with what - with your wishes? > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com http://www.zend.com/ > (408)253-8829 MSN: stas@zend.com > > -- Etienne Kneuss http://www.colder.ch Men never do evil so completely and cheerfully as when they do it from a religious conviction. -- Pascal