From:             [EMAIL PROTECTED]
Operating system: n/a
PHP version:      5CVS-2004-10-31 (dev)
PHP Bug Type:     Variables related
Bug description:  @ doesn't supress notices of undefined vars

Description:
------------
There is a BC break in the @ operator from PHP 4 to 5.

While PHP 4 doesn't output anything with supplied script (the correct
thing), PHP 5 echoes a notice.

Reproduce code:
---------------
<?

error_reporting(E_ALL);

function a ($var){}

a(@$abc);

?>

Expected result:
----------------
nothing

Actual result:
--------------
Notice: Undefined variable: abc

-- 
Edit bug report at http://bugs.php.net/?id=30629&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30629&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30629&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30629&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30629&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30629&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30629&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30629&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30629&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30629&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30629&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30629&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30629&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30629&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30629&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30629&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30629&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30629&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30629&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30629&r=mysqlcfg

Reply via email to