Doc #73194 [NEW]: Missing arguments throw ArgumentCountError since 7.1.0RC1
| From: | mhujer at gmail dot com | Date: | Wed, 28 Sep 2016 09:30:48 +0000 |
| Subject: | Doc #73194 [NEW]: Missing arguments throw ArgumentCountError since 7.1.0RC1 | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-13946@lists.php.net to get a copy of this message | ||
From: mhujer at gmail dot com
Operating system:
PHP version: 7.1.0RC2
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Missing arguments throw ArgumentCountError since 7.1.0RC1
Description:
------------
On manual page http://www.php.net/migration71.incompatible
in section
"Throw on passing too few function arguments" is stated:
The above example will output:
> Uncaught Error: Too few arguments to function test(), 0 passed in %s
on line %d and exactly 1 expected in %s:%d
But this changed in RC1 to:
> Uncaught ArgumentCountError: Too few arguments to function test(), 0
passed in %s on line %d and exactly 1 expected in %s:%d
See https://3v4l.org/YY17q
--
Edit bug report at https://bugs.php.net/bug.php?id=73194&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73194&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73194&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73194&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73194&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73194&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73194&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73194&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73194&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73194&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73194&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73194&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73194&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73194&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73194&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73194&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73194&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73194&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73194&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73194&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73194&r=mysqlcfg