#30629 [Opn->Bgs]: @ doesn't supress notices of undefined vars

From: Date: Sun, 31 Oct 2004 23:34:22 +0000
Subject: #30629 [Opn->Bgs]: @ doesn't supress notices of undefined vars
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-68539@lists.php.net to get a copy of this message
ID: 30629 Updated by: derick@php.net Reported By: nlopess@php.net -Status: Open +Status: Bogus Bug Type: Variables related Operating System: n/a PHP Version: 5CVS-2004-10-31 (dev) New Comment: This was never supposed to work, so no bug here. Previous Comments: ------------------------------------------------------------------------ [2004-10-31 17:00:22] nlopess@php.net 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 this bug report at http://bugs.php.net/?id=30629&edit=1

« previous php.bugs (#68539) next »