shpasser / GaeSupportL5

Google App Engine Support package for Laravel 5
MIT License
160 stars 27 forks source link

Null characters in serialized objects breaking queues #24

Closed atrauzzi closed 9 years ago

atrauzzi commented 9 years ago

When creating a queue job, I noticed that values are getting truncated. Looking into this further, it appears as though PHP inserts \x00 before private variables when using serialize.

Because Laravel depends on serialize functionality, it might be best if GaeQueue did a base64_encode when queueing and then a base64_decode when marshalling. That way they won't cause parse errors when laravel calls unserialize.

shpasser commented 9 years ago

Could you please provide an example, so I could test it in my environment? How is memcached connected to all that?

atrauzzi commented 9 years ago

Turns out this was OSX and possibly google app engine local dev related.

shpasser commented 9 years ago

I think issue #33 might be of interest for you. Looks like the same issue.