Bug #16265: Multiply-defined functions in classes not reported

From: Date: Mon, 25 Mar 2002 18:12:43 +0000
Subject: Bug #16265: Multiply-defined functions in classes not reported
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3302@lists.php.net to get a copy of this message
From: dshadow@zort.net Operating system: Linux PHP version: 4.1.2 PHP Bug Type: Scripting Engine problem Bug description: Multiply-defined functions in classes not reported 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(); -- Edit bug report at http://bugs.php.net/?id=16265&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16265&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16265&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16265&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16265&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16265&r=support Expected behavior: http://bugs.php.net/fix.php?id=16265&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16265&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16265&r=submittedtwice

« previous php.bugs (#3302) next »