Bug #73994 [NEW]: ReflectionFunction unpack
| From: | jurigag at gmail dot com | Date: | Wed, 25 Jan 2017 15:12:59 +0000 |
| Subject: | Bug #73994 [NEW]: ReflectionFunction unpack | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-206947@lists.php.net to get a copy of this message | ||
From: jurigag at gmail dot com
Operating system: Ubuntu 14.04
PHP version: 7.1.1
Package: Reflection related
Bug Type: Bug
Bug description:ReflectionFunction unpack
Description:
------------
In php 7.1.0 in changelog there is written that there were added
additional parameter to unpack function:
unpack() function accepts an additional optional argument $offset.
But in php 7.1.0 the number of parameters and required parameters is
both 2. In php 7.1.1 both returns 3
Test script:
---------------
$test = new ReflectionFunction("unpack");
echo $test->getNumberOfRequiredParameters();
echo $test->getNumberOfParameters();
Expected result:
----------------
For php 7.1.0:
2
3
For php 7.1.1:
2
3
Actual result:
--------------
For php 7.1.0:
2
2
For php 7.1.1:
3
3
--
Edit bug report at https://bugs.php.net/bug.php?id=73994&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73994&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73994&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73994&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73994&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73994&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73994&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73994&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73994&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73994&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73994&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73994&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73994&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73994&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73994&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73994&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73994&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73994&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73994&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73994&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73994&r=mysqlcfg