PHP Release 5.2.9


PHP 5.2.9 Release Announcement

The PHP development team would like to announce the immediate availability of PHP 5.2.9. This release 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). (Scott)
  • Fixed a crash on extract in zip when files or directories entry names contain a relative path. (Pierre)
  • Fixed explode() behavior with empty string to respect negative limit. (Shire)
  • Fixed a segfault when malformed string is passed to json_decode(). (Scott)

Key enhancements in PHP 5.2.9 include:

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

For users upgrading from PHP 5.0 and PHP 5.1, an upgrade guide is available here, detailing the changes between those releases and PHP 5.2.9.

For a full list of changes in PHP 5.2.9, see the ChangeLog.

Source Code
Change Logs
fixed bug #47049 (soapclient
  • Fixed bug #47104 (Linking shared extensions fails with icc). (Jani)
  • Fixed bug #47048 (Segfault with new pg_meta_data).
  • Fixed bug #47042 (PHP cgi sapi is removing SCRIPT_FILENAME for non apache).
  • Fixed bug #47037 (No error when using fopen with empty string).
  • Fixed bug #47035 (dns_get_record returns a garbage byte at the end of a TXT record).
  • Fixed bug #47027 (var_export doesn't show numeric indices on ArrayObject).
  • Fixed bug #46985 (OVERWRITE and binary mode does not work, regression introduced in 5.2.8).
  • Fixed bug #46973 (IPv6 address filter rejects valid address).
  • Fixed bug #46964 (Fixed pdo_mysql build with older version of MySQL).
  • Fixed bug #46959 (Unable to disable PCRE).
  • Fixed bug #46918 (imap_rfc822_parse_adrlist host part not filled in correctly).
  • Fixed bug #46889 (Memory leak in strtotime()).
  • Fixed bug #46887 (Invalid calls to php_error_docref()).
  • Fixed bug #46873 (extract($foo) crashes if $foo['foo'] exists).
  • Fixed bug #46843 (CP936 euro symbol is not converted properly).
  • Fixed bug #46798 (Crash in mssql extension when retrieving a NULL value inside a binary or image column type).
  • Fixed bug #46782 (fastcgi.c parse error).
  • Fixed bug #46760 (SoapClient doRequest fails when proxy is used).
  • Fixed bug #46748 (Segfault when an SSL error has more than one error).
  • Fixed bug #46739 (array returned by curl_getinfo should contain content_type key).
  • Fixed bug #46699 (xml_parse crash when parser is namespace aware).
  • Fixed bug #46419 (Elements of associative arrays with NULL value are lost).
  • Fixed bug #46282 (Corrupt DBF When Using DATE).
  • Fixed bug #46026 (bz2.decompress/zlib.inflate filter tries to decompress after end of stream).
  • Fixed bug #46005 (User not consistently logged under Apache2).
  • Fixed bug #45996 (libxml2 2.7 causes breakage with character data in xml_parse()).
  • Fixed bug #45940 (MySQLI OO does not populate connect_error property on failed connect).
  • Fixed bug #45923 (mb_st[r]ripos() offset not handled correctly).
  • Fixed bug #45327 (memory leak if offsetGet throws exception).
  • Fixed bug #45239 (Encoding detector hangs with mbstring.strict_detection enabled).
  • Fixed bug #45161 (Reusing a curl handle leaks memory).
  • Fixed bug #44336 (Improve pcre UTF-8 string matching performance).
  • Fixed bug #43841 (mb_strrpos() offset is byte count for negative values).
  • Fixed bug #37209 (mssql_execute with non fatal errors).
  • Fixed bug #35975 (Session cookie expires date format isn't the most compatible. Now matches that of setcookie()).
To Top