|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2010-03-02 01:17 UTC] felipe@php.net
 
-Status: Open
+Status: Closed
  [2010-03-02 01:17 UTC] felipe@php.net
  [2010-03-02 13:37 UTC] majkl578 at gmail dot com
  [2010-03-04 12:33 UTC] majkl578 at gmail dot com
  [2010-03-04 14:27 UTC] felipe@php.net
  [2010-11-03 02:35 UTC] felipe@php.net
  [2010-11-03 02:45 UTC] felipe@php.net
 
-Status: Closed
+Status: Bogus
  [2010-11-03 02:45 UTC] felipe@php.net
  [2010-11-03 12:03 UTC] majkl578 at gmail dot com
  [2011-05-31 02:06 UTC] david71rj at gmail dot com
  [2011-07-29 15:57 UTC] steve at twitpic dot com
  [2013-08-17 13:59 UTC] daniel dot ruthardt at zoesolutions dot eu
  [2016-04-13 20:43 UTC] kak dot serpom dot po dot yaitsam at gmail dot com
  [2023-05-20 15:11 UTC] kusov26an at gmail dot com
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
Description: ------------ When calling non-existing static method from non-static method, __call() is called instead of __callStatic(). self/static/className behaves incorrectly - like $this-> in that context. Verified on 5.3.2RC3, 5.3.1 and 5.3.0. Reproduce code: --------------- class Foo { public function start() { self::bar(); static::bar(); Foo::bar(); } public function __call($n, $a) { echo 'instance'; } public static function __callStatic($n, $a) { echo 'static'; } } $foo = new Foo(); $foo->start(); Expected result: ---------------- static static static Actual result: -------------- instance instance instance