note 21409 rejected from ref.classobj by torben

From: Date: Sat, 11 May 2002 23:14:10 +0000
Subject: note 21409 rejected from ref.classobj by torben
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-30492@lists.php.net to get a copy of this message
Inheritance Bug! class a{ function b(){ new b(); } } class b{ } calling bad = new b(); makes endless loop everytime. by inheriting method b from a, class b somehow "inherits" its constructor. this is of course never really wanted and for this not possible in java for example...

« previous php.notes (#30492) next »