Skip to content

Tags: writeas/phpserialize

Tags

v1.3.1

Toggle v1.3.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Adding serialization of objects with arrays (elliotchance#24)

v1.3.0

Toggle v1.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add tag option for omitting serialization of nil pointer values (elli…

…otchance#22)

Add omitnilptr tag option for omitting encoding of nil pointers. This prevents panicking when attempting encoding struct with nil pointer fields.

v1.2.0

Toggle v1.2.0's commit message
Implemented "php" tags for structs (elliotchance#20)

If you marshal or unmarshal from/into a struct, you may want to use go tags for it, instead of staticly using the struct field names just changing the first letter to upper/lower case.

Example:

    type Target struct {
        FirstName string `php:"vorname"`
        LastName string  `php:"nachname"`
    }

This will correctly be filled with the according fields of serialized php object.
Also unmarshaling will not fail if a struct field does not exist, because you may want to skip some fields from php objects.

v1.1.7

Toggle v1.1.7's commit message
Fix a ​nested case with associative array (elliotchance#18)

Fixes elliotchance#17

v1.1.6

Toggle v1.1.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Create LICENSE (elliotchance#14)

v1.1.5

Toggle v1.1.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: escape characters (elliotchance#10)

Some characters are escaped and some are not. There seems to be no rhyme or reason to it.

v1.1.4

Toggle v1.1.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
unmarshall map: multibyte example. Fixes elliotchance#1 (elliotchance#9)

Provided an example test for the specific case in issue elliotchance#1.

v1.1.3

Toggle v1.1.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
unmarshall array: nested associative. Fixes elliotchance#7 (elliotcha…

…nce#8)

This fixes a bug where a nested array might be associative.

v1.1.2

Toggle v1.1.2's commit message
do not escape strings (elliotchance#6)

Do not escape strings as PHP does not support escaping in serialized string

v1.1.1

Toggle v1.1.1's commit message
Fix panic if MarshalOptions is nil (elliotchance#4)