|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-25 15:32 UTC] derick@php.net
[2002-04-01 21:37 UTC] yohgaki@php.net
[2002-04-02 01:43 UTC] derick@php.net
[2002-12-06 19:36 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 17:00:02 2025 UTC |
PHP does not report multiply-defined errors for class member functions. For example, the following script below, when executed, only outputs "two", with no errors. Instead, PHP should be giving error messages since the function bar has been defined multiple times. <? class foo { function bar() {echo "one\n";} function bar() {echo "two\n";} } $f = new foo(); $f->bar();