Bug #14640: Support "{@$foo}" and "{@$foo['bar']}" syntax

From: Date: Fri, 21 Dec 2001 13:21:44 +0000
Subject: Bug #14640: Support "{@$foo}" and "{@$foo['bar']}" syntax
Groups: php.dev 
Request: Send a blank email to php-dev+get-74690@lists.php.net to get a copy of this message
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
« previous php.dev (#74690) next »