I'm using the following function to decode an encoded session string from a db ( function found on php.net). I'm recieving a warning (not fatal) " Notice: Undefined offset: 10 in c:\_localhost . . ." on the same line number of where preg_split() is.
Apache/1.3.33 (Win32) PHP/4.3.10
PHP Code:
function unserializesession($data) { $vars = preg_split('/([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*)\|/', $data, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); for($i=0; $vars[$i]; $i++) { $result[$vars[$i++]] = unserialize($vars[$i]); } return $result; }

__________________
<mgraphic /> - I don't have a solution but I admire the problem.
|