Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35370 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4529 invoked by uid 1010); 11 Feb 2008 13:03:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 4514 invoked from network); 11 Feb 2008 13:03:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2008 13:03:45 -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 209.85.142.185 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: 209.85.142.185 ti-out-0910.google.com Received: from [209.85.142.185] ([209.85.142.185:51133] helo=ti-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/00-64922-EA740B74 for ; Mon, 11 Feb 2008 08:03:43 -0500 Received: by ti-out-0910.google.com with SMTP id a21so244041tia.17 for ; Mon, 11 Feb 2008 05:03:39 -0800 (PST) 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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=9nsjQj1HqFQv70aWOTbwIR0wCujkGKLR3RdAeUo3ykA=; b=smKCyVlkFejf532UV2Pux1zmwdfbBgcfBQ/2YlcYS9ft89zr9hJruVC4s7/Xw3tK77Tv6osEaeBeVV/HKryKNIMGgzSMiPL2ydy33fmeCX7rYPLYAh4UM/GMmxs4Yh+0aqP2JAExbrNweB8RcziRyIQc3ydqIPySDxsYqCsTKrs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=oZ4vaK5uk8S0kQ1DqpbIDmpPXRlqP1lhj2w8P7FTXe4OaNR7djQz3iemDwq813qoUJyQ9qdEvbsRHjnCHVBHPKpiML1xz5xwhTetJf+YIMWL52mrXrM1Be4Er/G+hQCVyUOpdE4wqne5BtcfSa5Aoqp0BFj8c2Ooq80eNabgEys= Received: by 10.110.21.17 with SMTP id 17mr8318873tiu.49.1202735018292; Mon, 11 Feb 2008 05:03:38 -0800 (PST) Received: by 10.70.24.12 with HTTP; Mon, 11 Feb 2008 05:03:38 -0800 (PST) Message-ID: Date: Mon, 11 Feb 2008 14:03:38 +0100 Sender: ekneuss@gmail.com To: php-dev In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5F.AA.64922.495BFA74@pb1.pair.com> <345fd5cd0802110319n375a2824sd0194b2486f226e2@mail.gmail.com> <88.F9.64922.3E330B74@pb1.pair.com> X-Google-Sender-Auth: 28d72f173e40928b Subject: [PHP-DEV] Problems with LSB From: colder@php.net ("Etienne Kneuss") Hello, your foo function is not defined as static, hence no static call is done. > Strict Standards: Non-static method A::foo() should not be called statically, assuming $this from incompatible context ... Define your method as static and it should work just fine. Regards On Feb 11, 2008 12:39 PM, Sebastian Deutsch wrote: > Hello, > > care... my case is slightly different. I was aware of that problem, but > in my case I call B::foo() from the main scope - it behaves right - > when I call it within the scope of C (same call) it behaves different. > > This is different as described in the bug. The same call should > have the same output, not depending of the scope where I call it. > > Sebastian > > Lokrain schrieb: > > > > Hello, Sebastian > > > > This seems to be a known bug http://bugs.php.net/bug.php?id=43408 and in > > fact already assigned. > > > > Fallbacks occur in static/self calls, as static/self resolve to "foo" > >> and it returns foo as expected. > >> > >> However, when you do a parent::demo() you actually call bar::demo(), > >> which is currently understood as a "fully qualified call": the caller is > >> not passed. > >> > >> There are plans to allow explicit parent call to pass the caller, but > >> this is *still under discussion*. > >> > >> > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- Etienne Kneuss http://www.colder.ch Men never do evil so completely and cheerfully as when they do it from a religious conviction. -- Pascal