|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-03-15 13:11 UTC] spam2 at rhsoft dot net
[2017-03-15 13:31 UTC] andrey@php.net
-Package: *General Issues
+Package: Scripting Engine problem
[2017-03-15 13:59 UTC] andrey@php.net
[2017-03-16 17:19 UTC] tpunt@php.net
-Assigned To:
+Assigned To: tpunt
[2017-03-16 18:05 UTC] nikic@php.net
-Status: Assigned
+Status: Duplicate
[2017-03-16 18:05 UTC] nikic@php.net
[2017-03-27 20:54 UTC] tpunt@php.net
-Assigned To: tpunt
+Assigned To:
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 06:00:02 2025 UTC |
Description: ------------ The error is only at runtime. The linter obviously doesn't catch that. PHPStorm (as a reasonable IDE) also doesn't catch that. In languages PHP tries to follow this is a syntax error. Test script: --------------- $ php -r 'function a($b=true, $c){ var_dump($b,$c); } a(); ' Expected result: ---------------- error: default argument missing for parameter 2 Actual result: -------------- Warning: Missing argument 2 for a(), called in Command line code on line 1 and defined in Command line code on line 1 bool(true) NULL