RE: [PHP] Re: Getting bool(false) when using unserialize

2007-03-04 Thread Richard Kurth
This gets the same error $testdata=stripslashes($testdata); $testdata= unserialize($testdata); var_dump($testdata); And I can't stripslashes before serializing because I don't have control of the script that sends the data -Original Message- From: Al [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] Re: Getting bool(false) when using unserialize

2007-03-04 Thread Al
Do this: $sstr= base64_encode(serialize($foo)); $return= unserialize(base64_decode($sst)); Richard Kurth wrote: This gets the same error $testdata=stripslashes($testdata); $testdata= unserialize($testdata); var_dump($testdata); And I can't