Bug #14640: Support "{@$foo}" and "{@$foo['bar']}" syntax
From: mfischer@guru.josefine.at
Operating system: Any
PHP version: 4.1.0
PHP Bug Type: Feature/Change Request
Bug description: Support "{@$foo}" and "{@$foo['bar']}" syntax
$ php -q
<? error_reporting(E_ALL);
echo "{@$array['key']}"; ?>
<br />
<b>Parse error</b>: parse error, expecting T_STRING' or
T_VARIABLE' or
`T_NUM_STRING' in <b>-</b> on line <b>2</b><br />
-(2) : Parse error - parse error, expecting T_STRING' or T_VARIABLE' or
`T_NUM_STRING'
$ php -q
<? error_reporting(E_ALL);
echo "{@$foo}\n";
?>
<br />
<b>Warning</b>: Undefined variable: foo in <b>-</b> on line
<b>2</b><br
/>
-(2) : Warning - Undefined variable: foo
{@}
Would be nice to support the @ operator in those cases too.
--
Edit bug report at: http://bugs.php.net/?id=14640&edit=1
Thread (1 message)
- mfischer at guru dot josefine dot at