Bug #16265 Updated: Multiply-defined functions in classes not reported
| From: | derick@php.net | Date: | Tue, 02 Apr 2002 06:43:24 +0000 |
| Subject: | Bug #16265 Updated: Multiply-defined functions in classes not reported | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-3795@lists.php.net to get a copy of this message | ||
ID: 16265
Updated by: derick@php.net
Reported By: dshadow@zort.net
-Status: Open
+Status: Suspended
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.1.2
New Comment:
I'm suspending this for now, this issue is not easily solved
unfortunately. But we keep this on the todo list for future releases.
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-04-01 21:37:21] yohgaki@php.net
Need to open again.
This bug may be suspended.
------------------------------------------------------------------------
[2002-03-25 15:32:48] derick@php.net
Fixed in CVS, will also be in PHP 4.2.0
Derick
------------------------------------------------------------------------
[2002-03-25 13:12:42] dshadow@zort.net
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