Doc #77409 [Com]: Missing Documentation

From: Date: Thu, 03 Jan 2019 21:47:00 +0000
Subject: Doc #77409 [Com]: Missing Documentation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16290@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77409&edit=1 ID: 77409 Comment by: colbathmark at gmail dot com 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: Thanks, and sorry for *bugging* you. Previous Comments: ------------------------------------------------------------------------ [2019-01-03 20:49:58] requinix@php.net And before 7.1 it was a warning. Always had been. https://3v4l.org/k1u1Z ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#16290) next »