Doc #77409 [Nab]: Missing Documentation
Edit report at https://bugs.php.net/bug.php?id=77409&edit=1
ID: 77409
Updated by: requinix@php.net
Reported by: colbathmark at gmail dot com
Summary: Missing Documentation
Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
Operating System: Linux
PHP Version: 7.2.13
Block user comment: N
Private report: N
New Comment:
And before 7.1 it was a warning. Always had been. https://3v4l.org/k1u1Z
Previous Comments:
------------------------------------------------------------------------
[2019-01-03 20:46:18] peehaa@php.net
That has been introduced in 7.1 not 7.0:
https://secure.php.net/migration71.incompatible
------------------------------------------------------------------------
[2019-01-03 20:44:13] 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:42:52] colbathmark at gmail dot com
Description:
------------
---
From manual page: https://php.net/migration70.incompatible
---
Test script:
---------------
<?php
function foo($a, $b, $c)
{
return $a + $b + $c;
}
print foo(1, 2);
?>
Expected result:
----------------
3
Actual result:
--------------
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function foo...
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77409&edit=1
Thread (5 messages)