|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-21 08:41 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 18:00:01 2025 UTC |
Description: ------------ The constructor over loading is not allowed in PHP however for being OOPS based language it should. Reproduce code: --------------- class PDF extends FPDF { public function __construct($one){ echo "one"; } public function __construct($one,$two){ echo "two"; } public function __construct(){ echo "blank"; } } Expected result: ---------------- it should allow us contructor overloading. Actual result: -------------- error: can not redeclare function.