ID: 40292 Updated by: [EMAIL PROTECTED] Reported By: Jonah at whalehosting dot ca -Status: Open +Status: Closed Bug Type: Documentation problem PHP Version: Irrelevant New Comment:
This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. "Functions and method calls works since PHP 5." Previous Comments: ------------------------------------------------------------------------ [2007-01-30 22:08:29] Jonah at whalehosting dot ca Description: ------------ PHP 4.* does not support calling object methods in the complex (curly) syntax. The doc page at http://php.net/string does not have any version information for the complex syntax. Reproduce code: --------------- class foobar{ function bar(){ echo 'blah'; } } $foo = new foobar(); echo <<<EOD <br /> this does NOT work on PHP 4.*: {$foo->bar()} EOD; Expected result: ---------------- PHP 5.1.6 prints 'blah' as expected. Actual result: -------------- PHP 4.4.0 and 4.4.4 print this error: Parse error: syntax error, unexpected '(', expecting '}' in ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40292&edit=1