php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: contact at swiftlytilting dot com
New email:
PHP Version: OS:

 

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

Reproduce code:
---------------
<?php 

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

Test::Test_function();

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

Patches

Pull Requests

History

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 pecl.php.net.

In case this was a pecl.php.net 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: Sat Nov 09 08:01:28 2024 UTC