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

From: Date: Mon, 11 Aug 2003 21:10:49 +0000
Subject: #14640 [Com]: Support "{@$foo}" and "{@$foo['bar']}" syntax
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-45763@lists.php.net to get a copy of this message
ID: 14640 Comment by: destes at ix dot netcom dot com Reported By: mfischer at guru dot josefine dot at Status: Open Bug Type: Feature/Change Request Operating System: Any PHP Version: 4.1.0 New Comment: what sorts of errors aren't being suppressed now? If the variable doesn't exist, nothing is output, and in a function context, FALSE is returned. I don't see the need... perhaps you could explain it? Previous Comments: ------------------------------------------------------------------------ [2001-12-21 08:21:43] mfischer at guru dot josefine dot at $ 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 this bug report at http://bugs.php.net/?id=14640&edit=1

« previous php.bugs (#45763) next »