|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59279 callStatic not catching undefined static methods
Submitted: 2010-06-23 08:59 UTC Modified: 2010-06-24 06:24 UTC
From: contact at swiftlytilting dot com Assigned:
Status: Closed Package: bcompiler (PECL)
PHP Version: 5.3.2 OS: WinXP SP3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: contact at swiftlytilting dot com
New email:
PHP Version: OS:


 [2010-06-23 08:59 UTC] contact at swiftlytilting dot com
It seems using unnamed static functions (using __callStatic ) isn't working right with bcompiler. 

Reproduce code:

class Test
   public static function __callStatic($func, $args)
   	echo "Name of called function: $func";


Expected result:
Name of called function: Test_function

Actual result:
PHP Fatal error:  Call to undefined method Test::Test_function() in [filename] on line 11


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-24 03:55 UTC] alan at akbkhome dot com
Patches Welcome
 [2010-06-24 05:38 UTC] contact at swiftlytilting dot com
I wasn't sure how to submit a patch, so I sent an email to your akbkhome dot com address.  Attached is an updated bcompliler.c which seems to fix the problem.
 [2010-06-24 06:24 UTC] alan at akbkhome dot com
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on

In case this was a website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PECL better.

Yeah we could do with a patch system like pear...

Patch applied
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 04:01:30 2024 UTC