note 52528 added to language.oop5.basic

From: Date: Wed, 04 May 2005 19:14:40 +0000
Subject: note 52528 added to language.oop5.basic
Groups: php.notes 
Request: Send a blank email to php-notes+get-88937@lists.php.net to get a copy of this message
Looks like this doesn't work: <?php class Bar { // anything useful } class Foo { private $bar; function __construct($bar = new Bar()) { $this->bar = $bar; } } ?> This breaks with "Unexpected T_NEW in path/to/file anylinenumber". I would say, this is the same effect as in my second note on this page... ---- Manual Page -- http://www.php.net/manual/en/language.oop5.basic.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52528 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52528&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52528&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52528&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52528&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52528&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52528&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88937) next »