From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 4.2.2
PHP Bug Type: Class/Object related
Bug description: Classes can contain multiple function declarations - not detected by
parser.
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 bug report at http://bugs.php.net/?id=20547&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20547&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20547&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20547&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20547&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20547&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20547&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20547&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20547&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20547&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20547&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20547&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20547&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20547&r=isapi