Re: [phplib] PHPLIB+PHP4 session variable not registered From: Sascha Schumann (sascha <email protected>)
Date: 11/25/00

> This works in php3 but not in php4, because the unset removes the global
> references of $info, so $sess->serialize() can't find the correct values
> for $info and simple don't register the $info array. But in php3 it
> works fine, unset simple clears the values of $info and do not remove
> the global reference, so when a re-set $info after unset it is still
> global and then $sess->serialize() do find the values. But I could not
> find any references in manual about this diferent behavior between
> versions;

    "unset() now breaks the association between a locally scoped
    variable and one that is globally scoped if the reference is
    made using the "global" keyword.

    http://php.net/version4/incompatibilities.php

    - Sascha

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>