PHP Release 5.2.13


PHP 5.2.13 Release Announcement

The PHP development team would like to announce the immediate availability of PHP 5.2.13. This release focuses on improving the stability of the PHP 5.2.x branch with over 40 bug fixes, some of which are security related. All users of PHP 5.2 are encouraged to upgrade to this release.

Security Enhancements and Fixes in PHP 5.2.13:

  • Fixed safe_mode validation inside tempnam() when the directory path does not end with a /). (Martin Jansen)
  • Fixed a possible open_basedir/safe_mode bypass in the session extension identified by Grzegorz Stachowiak. (Ilia)
  • Improved LCG entropy. (Rasmus, Samy Kamkar)

Key enhancements in PHP 5.2.13 include:

  • Fixed bug #50940 Custom content-length set incorrectly in Apache sapis. (Brian France, Rasmus)
  • Fixed bug #50847 (strip_tags() removes all tags greater then 1023 bytes long). (Ilia)
  • Fixed bug #50661 (DOMDocument::loadXML does not allow UTF-16). (Rob)
  • Fixed bug #50632 (filter_input() does not return default value if the variable does not exist). (Ilia)
  • Fixed bug #50540 (Crash while running ldap_next_reference test cases). (Sriram)
  • Fixed bug #49851 (http wrapper breaks on 1024 char long headers). (Ilia)
  • Over 30 other 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.13.

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

Source Code
Change Logs
fixed bug #50823 (reflectionfunction
  • Fixed bug #50832 (HTTP fopen wrapper does not support passwordless HTTP authentication). (Jani) statically" error).
fixed bug #50791 (compile failure
  • Fixed bug #50787 (stream_set_write_buffer() has no effect on socket streams).
  • Fixed bug #50772 (mysqli constructor without parameters does not return a working mysqli object).
  • Fixed bug #50761 (system.multiCall crashes in xmlrpc extension).
  • Fixed bug #50732 (exec() adds single byte twice to $output array).
  • Fixed bug #50728 (All PDOExceptions hardcode 'code' property to 0).
  • Fixed bug #50727 (Accessing mysqli->affected_rows on no connection causes segfault).
  • Fixed bug #50680 (strtotime() does not support eighth ordinal number).
fixed bug #50661 (domdocument
  • Fixed bug #50657 (copy() with an empty (zero-byte) HTTP source succeeds but returns false).
  • Fixed bug #50636 (MySQLi_Result sets values before calling constructor).
  • Fixed bug #50632 (filter_input() does not return default value if the variable does not exist).
  • Fixed bug #50576 (XML_OPTION_SKIP_TAGSTART option has no effect).
  • Fixed bug #50575 (PDO_PGSQL LOBs are not compatible with PostgreSQL 8.5).
  • Fixed bug #50558 (Broken object model when extending tidy).
  • Fixed bug #50540 (Crash while running ldap_next_reference test cases).
fixed bug #50508 (compile failure
  • Fixed bug #50394 (Reference argument converted to value in __call).
  • Fixed bug #49851 (http wrapper breaks on 1024 char long headers).
  • Fixed bug #49600 (imageTTFText text shifted right).
  • Fixed bug #49585 (date_format buffer not long enough for >4 digit years).
  • Fixed bug #49463 (setAttributeNS fails setting default namespace).
  • Fixed bug #48667 (Implementing Iterator and IteratorAggregate).
  • Fixed bug #48590 (SoapClient does not honor max_redirects).
  • Fixed bug #48190 (Content-type parameter "boundary" is not case-insensitive in HTTP uploads).
  • Fixed bug #47601 (defined() requires class to exist when testing for class constants).
  • Fixed bug #47409 (extract() problem with array containing word "this").
  • Fixed bug #47002 (Field truncation when reading from dbase dbs with more then 1024 fields).
  • Fixed bug #45599 (strip_tags() truncates rest of string with invalid attribute).
To Top