#24151 [Opn->Bgs]: Not overloading methods.

From: Date: Thu, 12 Jun 2003 14:55:46 +0000
Subject: #24151 [Opn->Bgs]: Not overloading methods.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-41776@lists.php.net to get a copy of this message
ID: 24151 Updated by: derick@php.net Reported By: dias@php.net -Status: Open +Status: Bogus Bug Type: Class/Object related Operating System: windows xp pro PHP Version: 4.3.1 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php No bug Previous Comments: ------------------------------------------------------------------------ [2003-06-12 09:39:51] dias@php.net 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 this bug report at http://bugs.php.net/?id=24151&edit=1

« previous php.bugs (#41776) next »