|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-15 11:06 UTC] scottmac@php.net
[2009-06-23 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 09:00:01 2025 UTC |
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