#32428 [Ver->Csd]: The @ warning error supression operator is broken

From: Date: Mon, 06 Jun 2005 11:21:16 +0000
Subject: #32428 [Ver->Csd]: The @ warning error supression operator is broken
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-79952@lists.php.net to get a copy of this message
 ID:               32428
 Updated by:       dmitry@php.net
 Reported By:      jason at amp-design dot net
-Status:           Verified
+Status:           Closed
 Bug Type:         Zend Engine 2 problem
 Operating System: Cent OS 3
 PHP Version:      5CVS-2005-03-23 (dev)
 New Comment:

Fixed in CVS HEAD.


Previous Comments:
------------------------------------------------------------------------

[2005-03-23 16:46:55] tony2001@php.net

I can confirm this issue.
(reproducible in HEAD only) 

------------------------------------------------------------------------

[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


Thread (3 messages)

« previous php.bugs (#79952) next »