I am trying to integrate two PHP scripts (app1, app2) and I am trying to get session data from app1 in app2.
The problem is when I am trying to unserialize the session data from app1 I am getting a small ton of errors because PHP is trying to find the __wakeup() function for each of the objects.
I can’t use the unserialize_callback_func fix because app2 use it so its already set and can’t be changed.
I don’t need any data in the objects, is there some-way I can just remove the objects so they wont cause any problems?
You could be able to set the
unserialize_callback_functo your own and change it back afterwards.Also if the objects don’t exists in App2 you could also use autoloading to create the classes on the fly (without any methods), but that seems more hackisch
Update for Scotts comment:
This is getting really hackisch but it might to the job: