Bug #12277: in PHP4 constructors still seem to behave like in PHP3

From: Date: Fri, 20 Jul 2001 11:51:42 +0000
Subject: Bug #12277: in PHP4 constructors still seem to behave like in PHP3
Groups: php.dev 
Request: Send a blank email to php-dev+get-60375@lists.php.net to get a copy of this message
From: jack@mobil.cz Operating system: All PHP version: 4.0.5 PHP Bug Type: Class/Object related Bug description: in PHP4 constructors still seem to behave like in PHP3 the following code: <? class A { function A() { echo "I am the constructor of A.<br>\n"; } } class B extends A { function C() { echo "I am a regular function C.<br>\n"; } } class C extends B { } $b = new C(); ?> in PHP 4.0.5 prints: I am a regular function C.<br> is this correct? -- Edit bug report at: http://bugs.php.net/?id=12277&edit=1

« previous php.dev (#60375) next »