Edit report at https://bugs.php.net/bug.php?id=14640&edit=1

 ID:                 14640
 Comment by:         lijingyan922 at gmail dot com
 Reported by:        mfischer at guru dot josefine dot at
 Summary:            Support "{@$foo}" and "{@$foo['bar']}" syntax
 Status:             Wont fix
 Type:               Feature/Change Request
 Package:            Scripting Engine problem
 Operating System:   Any
 PHP Version:        4.1.0
 Block user comment: N
 Private report:     N

 New Comment:

Your blog is very informative and useful. You have written it very well. I have 
bookmarked your blog. Your blog written in very good, I like it very much, I 
will 
often come to.Thank you to let me see your blog, I love you blog style, very 
cool.Your blog too good, I will soon come back again, to keep at it.Your 
website 
is very beautiful, you do something great!!Your essay is good, I like it very 
much. Excellent Blog! I really admire your thinking and the way you have put 
these 
information in this post.


Previous Comments:
------------------------------------------------------------------------
[2010-12-29 11:59:44] [email protected]

Hell no, rather get rid of @ altogether.

------------------------------------------------------------------------
[2003-08-11 16:10:48] destes at ix dot netcom dot com

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?

------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=14640&edit=1

Reply via email to