Re: Uninitialized string offset

From: Date: Fri, 05 Jul 2002 11:17:17 +0000
Subject: Re: Uninitialized string offset
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-105621@lists.php.net to get a copy of this message
Uri, Sounds like the error reporting is set to E_ALL on the new php version and was set at a lower level before. The error indicates that the variable has not specfically been assigned a value before being used. HTH Chris Uri Even-Chen wrote:
After upgrading to Red Hat Linux 7.3 (which also includes a new PHP version), I saw this warning (Uninitialized string offset) on my apache error log files. It refers to a line which was perfectly legal before: if (isset($GLOBALS['SPEEDY_GLOBAL_VARS']['CURRENT_USER']['UserName'])) I always use isset to check if a variable is defined. Do you know why I get this warning?


« previous php.general (#105621) next »