Re: PHP 4.0 Bug #4175: new class_name doesn't work in class definition

From: Date: Tue, 18 Apr 2000 13:29:51 +0000
Subject: Re: PHP 4.0 Bug #4175: new class_name doesn't work in class definition
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-18012@lists.php.net to get a copy of this message
It works. Thank you. ----- Original Message ----- From: Faisal Nasim <faisal@nasim.org> To: <php-dev@lists.php.net>; <miroslav.sulc@startnet.cz> Sent: Tuesday, April 18, 2000 1:48 PM Subject: Re: [PHP-DEV] PHP 4.0 Bug #4175: new class_name doesn't work in class definition > : In my script I have: > : > : some_class > : { > : var $variable = new other_class_name; > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > : > : function ... > : } > > class foo > { > var $variable; > > function foo () > { > $variable = new bar; > } > } > > > Enjoy! > > Faisal >

« previous php.dev (#18012) next »