|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-12 09:55 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 02:00:01 2025 UTC |
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.