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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Tue Apr 16 21:01:28 2024 UTC