#20547 [Opn->Csd]: Classes can contain multiple function declarations - not detected by parser.
| From: | iliaa@php.net | Date: | Fri, 22 Nov 2002 00:45:42 +0000 |
| Subject: | #20547 [Opn->Csd]: Classes can contain multiple function declarations - not detected by parser. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-25503@lists.php.net to get a copy of this message | ||
ID: 20547
Updated by: iliaa@php.net
Reported By: php@webdevelopers.cz
-Status: Open
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.2.2
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-11-21 11:59:58] php@webdevelopers.cz
I think, that following example is self-explaining. Shouldn't the
parser detect such as errors? After testing, try to uncomment line #
serialize($tmp); and refresh the page - PHP hungs-up...
Danny
<?php
error_reporting(E_ALL);
class test {
function tt() {
echo "yooo";
}
function tt() {
echo "neee";
}
function __sleep() {
}
function __sleep() {
}
}
$tmp=new test();
$tmp->tt();
# serialize($tmp);
echo "TEST:END";
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20547&edit=1