jakebur01 Posted May 17, 2007 Share Posted May 17, 2007 I was wondering if anyone has had any trouble with serialize() and unserialize() after updating to the new version of php. My friend called me, he has a shopping cart where he puts the selected items product number, price and stuff in variables then into an array then serializes it. He has been passing it into another page then unserializing it. Since updating to the latest version of php he gets this: Error: PHP Warning: extract() [function.extract]: First argument should be an array in C:\Inetpub\JetSkiHaven.com\cart\custinfo_level1.php on line 57 His cart was working fine before the update. I feel like an idiot posting on here without any code. I was hoping someone has experience something close to this. Thank you, Jake Quote Link to comment https://forums.phpfreaks.com/topic/51918-solved-trouble-with-serialize/ Share on other sites More sharing options...
kenrbnsn Posted May 17, 2007 Share Posted May 17, 2007 It's obvious from your description that the unserialize is not working. It's probably due to quotes being escaped during the passing from between scripts. He should try a stripslashes() before unserializing. Ken Quote Link to comment https://forums.phpfreaks.com/topic/51918-solved-trouble-with-serialize/#findComment-255968 Share on other sites More sharing options...
jakebur01 Posted May 17, 2007 Author Share Posted May 17, 2007 That makes a lot of sense. Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/51918-solved-trouble-with-serialize/#findComment-255971 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.