Security enhancements in PHP 5.2.9

The PHP development team released PHP 5.2.9, a release that focuses on improving the stability of the PHP 5.2.x branch with over 50 bug fixes, several of which are security related. All users of PHP are encouraged to upgrade to this release.

Security enhancements and fixes in PHP 5.2.9

  • Fixed security issue in imagerotate(), background colour isn’t validated correctly with a non truecolour image. Reported by Hamid Ebadi, APA Laboratory (Fixes CVE-2008-5498).
  • Fixed a crash on extract in zip when files or directories entry names contain a relative path.
  • Fixed explode() behavior with empty string to respect negative limit.
  • Fixed a segfault when malformed string is passed to json_decode().

Key enhancements in PHP 5.2.9

  • Added optional sorting type flag parameter to array_unique(). Default is SORT_REGULAR.
  • Fixed bug #45996 (libxml2 2.7 causes breakage with character data in xml_parse()).
  • A number of fixes in the mbstring extension
  • Fixed bug #44336 (Improve pcre UTF-8 string matching performance).
  • Fixed bug #46699 (xml_parse crash when parser is namespace aware).
  • Fixed bug #46748 (Segfault when an SSL error has more than one error).
  • Fixed bug #46889 (Memory leak in strtotime()).
  • Fixed bug #47049 (SoapClient::__soapCall causes a segmentation fault).
  • Fixed bug #47165 (Possible memory corruption when passing return value by reference).
  • Fixed bug #47282 (FILTER_VALIDATE_EMAIL is marking valid email addresses as invalid).
  • Fixed bug #47422 (modulus operator returns incorrect results on 64 bit linux).

Don't miss