Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38593 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87916 invoked from network); 24 Jun 2008 17:14:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jun 2008 17:14:55 -0000 Authentication-Results: pb1.pair.com header.from=lew21st@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=lew21st@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.162.176 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: lew21st@gmail.com X-Host-Fingerprint: 209.85.162.176 el-out-1112.google.com Received: from [209.85.162.176] ([209.85.162.176:36742] helo=el-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/94-17106-F8B21684 for ; Tue, 24 Jun 2008 13:14:55 -0400 Received: by el-out-1112.google.com with SMTP id o28so297037ele.2 for ; Tue, 24 Jun 2008 10:14:52 -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:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=dobXC2VBjMHmlnWZpWQohUyh2lxpkcnVFnEJdjk56PI=; b=vrgfqsTswMFbi74ylTYo8BkDayDmycunswB1ouRNwmYsRKh7klvVCBwTcQTvGapeFo CALvBspvhCFr8q4FcE6YUjxPEv6P+fr4Lqq8hJzVPssUAnA7HLtb8QCEjIG4twweVN6l lJPBxoTkeMEYQ6nsE7cKwYnoYbmEdv2hNnEww= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=GemqBniVI4c4GhFq5QDxB6dpjmAVHa/xnIRw8runQ8p6jNAbIFSlBOjuD+xrHILlWE VsiYayD1qqUUZirt58JSH/Jr5gBAfo+4pqSGvZzqSmHAfwvJkDeKExqVweWALBZI6FaM aAohFin/fZW80BHa6XRVNrVsTS2DCDLnveHVM= Received: by 10.142.156.2 with SMTP id d2mr5916708wfe.271.1214327692154; Tue, 24 Jun 2008 10:14:52 -0700 (PDT) Received: by 10.114.72.15 with HTTP; Tue, 24 Jun 2008 10:14:52 -0700 (PDT) Message-ID: <353f2c6f0806241014m2b738a6cyf146331620034522@mail.gmail.com> Date: Tue, 24 Jun 2008 19:14:52 +0200 To: "Stanislav Malyshev" Cc: "PHP internals" In-Reply-To: <486127F2.7030704@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> <353f2c6f0806240952n6bcb1c6am47787ab65f837ee2@mail.gmail.com> <486127F2.7030704@zend.com> Subject: Re: [PHP-DEV] LSB forward_static_call() From: lew21st@gmail.com ("Janusz Lewandowski") nA(); } static function mB() { self::nB(); } } class B extends A { function mA() { parent::mA(); } static function mB() { parent::mB(); } function nA() { echo 'A'; } function nB() { echo 'B'; } } $obj = new B(); $obj->mA(); B::mB(); ?> Most people will think, that it will output AB. But currently in PHP 5.2 (I don't have PHP 5.3 to test it) it will output: A Fatal error: Call to undefined method A::nb() in Z:\localhost\testLSB.php on line 11 User that sees this, doesn't have any idea where is the problem and how to find some information about it.