#36823 [Opn->Bgs]: Object method and heredoc syntax

From: Date: Wed, 22 Mar 2006 15:55:21 +0000
Subject: #36823 [Opn->Bgs]: Object method and heredoc syntax
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94766@lists.php.net to get a copy of this message
ID: 36823 Updated by: tony2001@php.net Reported By: berthomg at igbmc dot u-strasbg dot fr -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Windows xp sp2 PHP Version: 4.4.2 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2006-03-22 16:47:32] berthomg at igbmc dot u-strasbg dot fr Description: ------------ Hello, I have noticed that you cannot call an object method in a heredoc syntax, for example: class toto { function method() { return "coucou"; } } $toto = new toto(); echo <<<EOT toto method : {$toto->method()} EOT; Should ouput "toto method : coucou", yet it outputs: Parse error: parse error, unexpected '(', expecting '}' Is there a way to do that or not? Thanks to all ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36823&edit=1

« previous php.bugs (#94766) next »