From: [EMAIL PROTECTED]
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