|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77409 Missing Documentation
Submitted: 2019-01-03 20:42 UTC Modified: 2019-01-03 20:49 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: colbathmark at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 7.2.13 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: colbathmark at gmail dot com
New email:
PHP Version: OS:


 [2019-01-03 20:42 UTC] colbathmark at gmail dot com
From manual page:

Test script:

function  foo($a, $b, $c)
   return $a + $b + $c;

print foo(1, 2);

Expected result:

Actual result:
 PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function foo...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-03 20:44 UTC] colbathmark at gmail dot com
Thing is, it's not documented in the migration 70 incompatible page. It works in PHP 5, but in PHP 7 we get a fatal error.
 [2019-01-03 20:46 UTC]
-Status: Open +Status: Not a bug
 [2019-01-03 20:46 UTC]
That has been introduced in 7.1 not 7.0:
 [2019-01-03 20:49 UTC]
And before 7.1 it was a warning. Always had been.
 [2019-01-03 21:47 UTC] colbathmark at gmail dot com
Thanks, and sorry for *bugging* you.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 09:01:23 2020 UTC