Bug #68641 [NEW]: spl_autoload_register arguments informations
| From: | contact at jubianchi dot fr | Date: | Tue, 23 Dec 2014 17:16:02 +0000 |
| Subject: | Bug #68641 [NEW]: spl_autoload_register arguments informations | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-189160@lists.php.net to get a copy of this message | ||
From: contact at jubianchi dot fr
Operating system: OSX
PHP version: 5.4.36
Package: Reflection related
Bug Type: Bug
Bug description:spl_autoload_register arguments informations
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 bug report at https://bugs.php.net/bug.php?id=68641&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68641&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68641&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68641&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68641&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68641&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68641&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68641&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68641&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68641&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68641&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68641&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68641&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68641&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68641&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68641&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68641&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68641&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68641&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68641&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68641&r=mysqlcfg