Created
October 8, 2012 10:38
-
-
Save drx777/3851894 to your computer and use it in GitHub Desktop.
Symfony issue 3691 serialization strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\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;O:37:"MyApp\Submodule\AppBundle\Entity\Role":3:{s:41:"MyApp\Submodule\AppBundle\Entity\Roleid";i:10;s:43:"MyApp\Submodule\AppBundle\Entity\Rolename";s:10:"ROLE_ADMIN";s:44:"MyApp\Submodule\AppBundle\Entity\Roleusers";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:3;a:0:{}} | |
And afterwards with PHP 5.4: | |
a:4:{i:0;a:1:{i:0;O:37:"MyApp\Submodule\AppBundle\Entity\Role":3:{s:41:"MyApp\Submodule\AppBundle\Entity\Roleid";i:10;s:43:"MyApp\Submodule\AppBundle\Entity\Rolename";s:10:"ROLE_ADMIN";s:44:"MyApp\Submodule\AppBundle\Entity\Roleusers";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;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:1:{i:0;r:4;}}s:46:"Doctrine\ORM\PersistentCollectioninitialized";b:1;}}i:2;b:1;i:3;a:0:{}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment