#40292 [NEW]: PHP 4.* does not support calling object methods in complex (curly) syntax
| From: | Jonah at whalehosting dot ca | Date: | Tue, 30 Jan 2007 22:08:29 +0000 |
| Subject: | #40292 [NEW]: PHP 4.* does not support calling object methods in complex (curly) syntax | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969375117@lists.php.net to get a copy of this message | ||
From: Jonah at whalehosting dot ca
Operating system:
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: PHP 4.* does not support calling object methods in complex (curly) syntax
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 bug report at http://bugs.php.net/?id=40292&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40292&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40292&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40292&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40292&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40292&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40292&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40292&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40292&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40292&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40292&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40292&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40292&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40292&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40292&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40292&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40292&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40292&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40292&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40292&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40292&r=mysqlcfg