[FX.php List] Annoying PHP warning

Leo R. Lundgren leo at finalresort.org
Sun Sep 7 07:52:46 MDT 2008


Some thoughts:

1) Do you have the setting register_globals set to On?
2) Do you somewhere in your code use variable names such as $myVar  
where a session variable with the same name (for example $_SESSION 
['myVar']) is/have been used?
3) Are you using session_register() somewhere in your code, such as  
session_register('variable_name')?

I've never seen that error before, but my guess is that #2 is the  
problem (and to be fair, #1 is in error as well ;-)


7 sep 2008 kl. 03.36 skrev Bob Patin:

> I'm getting this warning, and I *think* it's because I have an  
> undeclared variable, but if that's the case I can't find it.
>
> Can anyone tell me the most common cause for this error?
>
> ERROR MSG:
>
> Warning: Unknown(): Your script possibly relies on a session side- 
> effect which existed until PHP 4.2.3. Please be advised that the  
> session extension does not consider global variables as a source of  
> data, unless register_globals is enabled. You can disable this  
> functionality and this warning by setting session.bug_compat_42 or  
> session.bug_compat_warn to off, respectively. in Unknown on line 0
>
> Thanks,
>
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> iChat: bobpatin
> AIM: longterm1954
> FileMaker 9 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --------------------------
> FileMaker hosting and consulting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list


-|

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080907/950f0e41/attachment.html


More information about the FX.php_List mailing list