Bug #68641 [Asn->Csd]: spl_autoload_register arguments informations
| From: | levim@php.net | Date: | Sun, 28 Dec 2014 02:06:24 +0000 |
| Subject: | Bug #68641 [Asn->Csd]: spl_autoload_register arguments informations | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189234@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68641&edit=1
ID: 68641
Updated by: levim@php.net
Reported by: contact at jubianchi dot fr
Summary: spl_autoload_register arguments informations
-Status: Assigned
+Status: Closed
Type: Bug
Package: Reflection related
Operating System: Irrelevant
PHP Version: 5.3.0
Assigned To: levim
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of levim
Revision: http://git.php.net/?p=php-src.git;a=commit;h=9a7ee202bb60da68e84fac991d2635569f243474
Log: Fix bug #68641
Previous Comments:
------------------------------------------------------------------------
[2014-12-23 17:16:02] contact at jubianchi dot fr
Description:
------------
The arguments informations returned by the reflection API on the spl_autoload_register function is
incomplete: only the first parameter (autoload_function ) is listed
Test script:
---------------
<?php
// http://3v4l.org/LOUY1
$function = new \reflectionFunction('spl_autoload_register');
echo 'Parameters:' . PHP_EOL;
foreach ($function->getParameters() as $parameter)
{
echo '* ' . $parameter->getName() . PHP_EOL;
}
echo str_repeat('-', 20) . PHP_EOL;
echo $function->getNumberOfRequiredParameters() . '/' .
$function->getNumberOfParameters() . PHP_EOL;
Expected result:
----------------
Parameters:
* autoload_function
* throws
* prepend
--------------------
0/3
Actual result:
--------------
Parameters:
* autoload_function
--------------------
0/1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68641&edit=1