php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56568 method added by runkit_method_add not returned by get_class_methods
Submitted: 2005-09-30 03:48 UTC Modified: 2009-07-21 19:54 UTC
From: skissane at gmail dot com Assigned:
Status: Not a bug Package: runkit (PECL)
PHP Version: 5.0.3 OS: Linux
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:
Package:
Bug Type:
Summary:
From: skissane at gmail dot com
New email:
PHP Version: OS:

 

 [2005-09-30 03:48 UTC] skissane at gmail dot com
Description:
------------
<?
class Foo { }
runkit_method_add("Foo","bar",'',"return;");
print_r(get_class_methods("Foo"));

should return:
Array
(
     [0] => "bar"
)

instead it returns:
Array
(
)



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-27 19:17 UTC] pecl at stefan-marr dot de
No problem here on 

PHP 5.2.6-dev (cli) (built: Nov 13 2007 19:02:15) (DEBUG)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies


returns as expected 

Array
(
    [0] => bar
)
 [2009-07-21 19:54 UTC] pear dot neufeind at speedpartner dot de
Thank you for taking the time to report a problem with the package.
Unfortunately you are not using a current version of the package -- 
the problem might already be fixed. Please download a new
version from http://pecl.php.net/packages.php

If you are able to reproduce the bug with one of the latest
versions, please change the package version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PECL.

Also tested with current runkit and php 5.2.10. Works as expected. Please try with current versions and reopen if the bug still occurs for you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 09:01:29 2024 UTC