|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-03-22 13:16 UTC] jinmoku at hotmail dot com
[2011-03-22 13:23 UTC] felipe@php.net
[2015-03-29 04:11 UTC] kalle@php.net
-Package: *Compile Issues
+Package: Scripting Engine problem
[2015-03-29 04:11 UTC] kalle@php.net
[2015-03-29 08:03 UTC] nikic@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: nikic
[2015-03-29 08:03 UTC] nikic@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 18:00:01 2025 UTC |
Description: ------------ When writing class method and function declarations, php allows multiple parameters with the same name. This seems like something that should produce a warning or notice. Test script: --------------- class Foo { public function bar($param, $param) { echo $param; } } $foo = new Foo(); $foo->bar('param1', 'param2'); Expected result: ---------------- I feel as though this should produce a warning or notice. Actual result: -------------- Runs without any issues and echos 'param2'