php.net |  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
Votes:9
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
Description:
------------
Using reflectionFunction class on PHP function class_exists() to have its parameters failed.

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

$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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-15 11:06 UTC] scottmac@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC