From: [EMAIL PROTECTED]
Operating system: windows xp pro
PHP version: 4.3.1
PHP Bug Type: Class/Object related
Bug description: Not overloading methods.
Description:
------------
When I write two methods in a class, the interpreter emits an error.
The error says that the program cannot redeclare the method.
Reproduce code:
---------------
<?php
class Foo {
var $_foo;
function Foo(){}
function Foo( $foo ){
$this->_foo = $foo;
}
}
?>
Expected result:
----------------
I expect use the two methods. When it will be convenient.
--
Edit bug report at http://bugs.php.net/?id=24151&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24151&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24151&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24151&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24151&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24151&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24151&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24151&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24151&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24151&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24151&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24151&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24151&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24151&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24151&r=gnused