Skip to content

Releases: dbrumann/polyfill-unserialize

2.0.0

24 Jul 11:17
46e5c18
Compare
Choose a tag to compare

Fixes a bug in version 1.x

1.0.4

14 Jul 23:31
8ed1cd3
Compare
Choose a tag to compare

This release provides minor improvements around type safety and some cleanups.

Changelog

  • Newer PHP versions were added to the build pipeline to make sure no regressions are introduced when upgrading to PHP 7.2 or 7.3
  • Adds tests
  • Minor changes to unserialize() that should not alter the current behavior:
    • Some if-conditions were simplified for better readability
    • When checking for in_array() the third argument (strict type check) was added
    • Instead of using list() inside the anonymous function array_shift() is used. This will make sure the behavior will stay consistent between major versions (not that this matters as with PHP 7 the global unserialize() will be used anyway)
    • type coercion is applied to the extracted variables inside the anonymous function, mainly to clarify $objectSize is an integer before adding +1 to it
  • A .gitattributes file was added to ensure tests are stripped from the final release to make the resulting dist file is a teeny tiny bit smaller
  • A composer.lock was added and removed from .gitignore to adhere to composer best practices
  • Cleanups in LICENSE, README and tests

1.0.3

03 Feb 10:02
Compare
Choose a tag to compare
v1.0.3

Add composer.lock to .gitignore.

1.0.2

31 Dec 08:52
Compare
Choose a tag to compare

Fixes a bug where a double serialized object was replaced due to too lenient left border matching.

1.0.1

30 Dec 16:00
Compare
Choose a tag to compare
  • Documentation updates
  • Minor style fixes to Unserialize::unserialize()

1.0.0

30 Dec 15:38
Compare
Choose a tag to compare

Backports unserialize with options argument to PHP 5.3+