ID:               16265
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: Linux
 PHP Version:      4.1.2
 New Comment:

Fixed in CVS, will also be in PHP 4.2.0

Derick


Previous Comments:
------------------------------------------------------------------------

[2002-03-25 13:12:42] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=16265&edit=1

Reply via email to