Skip to content

Instantly share code, notes, and snippets.

@drx777
drx777 / symfony_3691_serialization_strings.txt
Created October 8, 2012 10:38
Symfony issue 3691 serialization strings
For reference, this are the serialized strings I get before messing with the implementation in AbstractToken:
PHP 5.4:
a:4:{i:0;O:37:"MyApp\Submodule\AppBundle\Entity\User":5:{s:41:"MyApp\Submodule\AppBundle\Entity\Userid";i:8;s:47:"MyApp\Submodule\AppBundle\Entity\Userusername";s:5:"admin";s:47:"MyApp\Submodule\AppBundle\Entity\Userpassword";s:88:"NZ7XOtPj4pkM6Klk9wLNrNuLYphlOhb40GXueK3b7Mh7EyiDND7fTyMM18DYz2tLDsLKsVl63L2uqe5CWb23Rg==";s:43:"MyApp\Submodule\AppBundle\Entity\Usersalt";s:32:"eaefd6e7b842c475a609a2f4f68fe12d";s:48:"MyApp\Submodule\AppBundle\Entity\UseruserRoles";O:33:"Doctrine\ORM\PersistentCollection":2:{s:39:"Doctrine\ORM\PersistentCollectioncoll";O:43:"Doctrine\Common\Collections\ArrayCollection":1:{s:54:"Doctrine\Common\Collections\ArrayCollection_elements";a:0:{}}s:46:"Doctrine\ORM\PersistentCollectioninitialized";b:0;}}i:1;b:1;i:2;a:1:{i:0;s:32:"eaefd6e7b842c475a609a2f4f68fe12d";}i:3;a:0:{}}
PHP 5.3:
a:4:{i:0;O:37:"MyApp\Submodule\AppBundle\Entity\User":5:{s:41:"MyApp\Submodule\AppBundl