Re: Uninitialized string offset
| From: | Uri Even-Chen | Date: | Fri, 05 Jul 2002 20:23:30 +0000 |
| Subject: | Re: Uninitialized string offset | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-105730@lists.php.net to get a copy of this message | ||
Hi,
Actually, the error_reporting is set to E_ALL and was set to E_ALL in
the previous version, too. I found out they added the Uninitialized
string offset in Version 4.1.0 (see
<http://www.php.net/ChangeLog-4.php>). I
just wanted to know what this
error means. Anyway, I think I'll just add a "@" sign to supporess
warnings.
Thanks!
Uri.
--------------------------------------------------------
Chris Hewitt wrote:
>
> 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?
--------------------------------------------------------