Bug #18202 Updated: suppressing errors with "@"

From: Date: Sat, 06 Jul 2002 21:26:46 +0000
Subject: Bug #18202 Updated: suppressing errors with "@"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13331@lists.php.net to get a copy of this message
ID: 18202 Updated by: derick@php.net Reported By: webmaster@speedy.co.il -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Red Hat Linux 7.3 PHP Version: 4.1.2 New Comment: Sorry, but the bug system is not the appropriate forum for asking support questions. Your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2002-07-06 17:24:35] webmaster@speedy.co.il Hi, I tried to suppress warnings in isset expressions (Uninitialized string offset warnings). The original line was something like this: if (!(isset($GLOBALS['SPEEDY_GLOBAL_VARS']['PAGE_NAME']))) When I added the "@" sign like this: if (!(isset(@$GLOBALS['SPEEDY_GLOBAL_VARS']['PAGE_NAME']))) My program stopped working, and I got errors like: PHP Parse error: parse error, expecting T_VARIABLE' or '$'' .... Eventually, I put the "@" in this place: if (!(@isset($GLOBALS['SPEEDY_GLOBAL_VARS']['PAGE_NAME']))) Which works, but why didn't it work the other way? Is it some kind of PHP bug? I'm using PHP Version 4.1.2 Thanks, Uri Even-Chen Speedy Software Raanana, Israel. -------------------------------------------------------- Welcome to Speedy Net (In Hebrew): http://www.speedy.co.il/ Speedy Dating (In Hebrew): http://dating.speedy.co.il/ Speedy Composer (In English): http://www.speedy.co.il/composer/ -------------------------------------------------------- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18202&edit=1

« previous php.bugs (#13331) next »