|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-12-12 10:28 UTC] jani@php.net
[2010-12-31 23:54 UTC] jani@php.net
-Type: Feature/Change Request
+Type: Bug
-Package: Feature/Change Request
+Package: Scripting Engine problem
-Operating System: Linux Debian 4.0
+Operating System: *
-PHP Version: 5.2.5, 5.3CVS, 6CVS
+PHP Version: *
[2011-02-18 00:24 UTC] felipe@php.net
[2011-02-18 00:25 UTC] felipe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: felipe
[2011-02-18 00:25 UTC] felipe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ The PHP-Parser doesn't recognise if a parameter with the same name is given over two times (no warning / error). In this case it was a copy-paste mistake, but it causes big troubles in our system. Reproduce code: --------------- class myCls extends otherCls { private function myFunc($var, $var) { //do something } } Expected result: ---------------- A Warning should occur. Something like "Multible use of variable/parameter name in function myFunc". Actual result: -------------- Nothing. The second parameter replaces the value of the first. If you don't give over an second parameter, the value of the first is nonsence or empty.