#32428 [Opn->Ver]: The @ warning error supression operator is broken
| From: | tony2001@php.net | Date: | Wed, 23 Mar 2005 15:46:56 +0000 |
| Subject: | #32428 [Opn->Ver]: The @ warning error supression operator is broken | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75760@lists.php.net to get a copy of this message | ||
ID: 32428
Updated by: tony2001@php.net
Reported By: jason at amp-design dot net
-Status: Open
+Status: Verified
Bug Type: Zend Engine 2 problem
Operating System: Cent OS 3
PHP Version: 5CVS-2005-03-23 (dev)
New Comment:
I can confirm this issue.
(reproducible in HEAD only)
Previous Comments:
------------------------------------------------------------------------
[2005-03-23 13:46:53] jason at amp-design dot net
Description:
------------
The @ operator that is used to supress errors about warnings and other
non critical errors such as notices seems to be broken in this mornings
snapshot of 5.1.0. This is quite fustrating as it's handy to use the @
operator when you want pass NULL when the variable doesn't exist.
Reproduce code:
---------------
<?php $data = @$not_exists; ?>
Expected result:
----------------
$data is assigned with NULL without an error message
Actual result:
--------------
Notice: Undefined variable: not_exists in
/data/web/tools/iq_framework/test.php on line 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32428&edit=1