|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48553 ReflectionFunction of class_exists() return no parameters
Submitted: 2009-06-15 09:27 UTC Modified: 2009-06-23 01:00 UTC
Avg. Score:4.8 ± 0.6
Reproduced:7 of 7 (100.0%)
Same Version:5 (71.4%)
Same OS:5 (71.4%)
From: fhardy at noparking dot net Assigned:
Status: No Feedback Package: Reflection related
PHP Version: 5.2.9 OS: FreeBSD 7.1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-06-15 09:27 UTC] fhardy at noparking dot net
Using reflectionFunction class on PHP function class_exists() to have its parameters failed.

Reproduce code:

$function = new reflectionFunction('class_exists');
$parameters = $function->getParameters();
echo sizeof($parameters) == 2 ? 'OK, class_exists() take 2 arguments' : 'KO, class_exists() take ' . sizeof($parameters) . ' arguments';


Expected result:
OK, class_exists() take 2 arguments

Actual result:
KO, class_exists() take 0 arguments


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-15 11:06 UTC]
Please try using this CVS snapshot:
For Windows:

This is fixed in 5.3.0+
 [2009-06-23 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Mar 31 19:03:40 2023 UTC