|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-19 01:45 UTC] tony2001@php.net
[2006-01-19 01:59 UTC] koukine at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 12:00:02 2025 UTC |
Description: ------------ 1. Parent constructor should be called first 2. This class consutructor shold be called once Reproduce code: --------------- <? class A{ function A(){ print("AAA; "); } } class B extends A{ function B(){ print("BBB; "); } } $b = &new B(); ?> Expected result: ---------------- AAA;BBB Actual result: -------------- BBB; AAA; BBB;