×
UpdatePHP Pro Log in Register
PHP expiry alert : PHP v8.1 has recently expired. Is your website still running this version? Click here for more details
SAFE versions of PHP: 8.5.12, 8.4.27, 8.3.36, 8.2.35
☰

PHP 5.0.2 release notes: what changed

PHP 5.0.2 came out on 23 September 2004. Below is the full list of changes it made, grouped by the part of PHP that each one affects.

What changed in PHP 5.0.2

All PHP 5.0 releases

The changes are listed in English, exactly as the PHP developers wrote them (36 in total).

  • Added new boolean (fourth) parameter to array_slice() that turns on the preservation of keys in the returned array. (Derick)
  • Added the sorting flag SORT_LOCALE_STRING to the sort() functions which makes them sort based on the current locale. (Derick)
  • Added interface_exists() and make class_exists() only return true for real classes. (Andrey)
  • Added PHP_EOL constant that contains the OS way of representing newlines. (Paul Hudson, Derick)
  • Implemented periodic PCRE compiled regexp cache cleanup, to avoid memory exhaustion. (Andrei)
  • Renamed SoapClient->__call() to SoapClinet->__soapCall(). (Dmitry)
  • Fixed bug with raw_post_data not getting set (Brian)
  • Fixed a file-descriptor leak with phpinfo() and other 'special' URLs (Zeev)
  • Fixed bug #30209 (ReflectionClass::getMethod() lowercases attribute). (Marcus)
  • Fixed bug #30182 (SOAP module processing WSDL file dumps core). (Dmitry)
  • Fixed bug #30045 (Cannot pass big integers (> 2147483647) in SOAP requests). (Dmitry)
  • Fixed bug #29985 (unserialize()/ __PHP_Incomplete_class does not report correctly class name). (Marcus, Tony)
  • Fixed bug #29945 (simplexml_load_file URL limitation 255 char). (Rob)
  • Fixed bug #29873 (No defines around pcntl_*priority definitions). (Derick)
  • Fixed bug #29844 (SOAP doesn't return the result of a valid SOAP request). (Dmitry)
  • Fixed bug #29842 (soapclient return null value). (Dmitry)
  • Fixed bug #29839 (incorrect convert (xml:lang to lang)). (Dmitry)
  • Fixed bug #29830 (SoapServer::setClass() should not export non-public methods). (Dmitry)
  • Fixed bug #29828 (Interfaces no longer work). (Marcus)
  • Fixed bug #29821 (Fixed possible crashes in convert_uudecode() on invalid data). (Ilia)
  • Fixed bug #29808 (array_count_values() breaks with numeric strings). (Ilia)
  • Fixed bug #29805 (HTTP Authentication Issues). (Uwe Schindler)
  • Fixed bug #29795 (SegFault with Soap and Amazon's Web Services). (Dmitry)
  • Fixed bug #29737 (ip2long should return -1 if IP is 255.255.255.255 and FALSE on error). (Tony)
  • Fixed bug #29711 (Changed ext/xml to default to UTF-8 output). (Rob)
  • Fixed bug #29678 (opendir() with ftp:// wrapper segfaults if path does not have trailing slash). (Ilia)
  • Fixed bug #29657 (xml_* functions throw non descriptive error). (Christian, Rob)
  • Fixed bug #29656 (segfault on result and statement properties). (Georg)
  • Fixed bug #29566 (foreach/string handling strangeness (crash)). (Dmitry)
  • Fixed bug #29447 (Reflection API issues). (Marcus)
  • Fixed bug #29296 (Added sslv2 and sslv3 transports). (Wez)
  • Fixed bug #29283 (Invalid statement handle in mysqli on execute). (Georg)
  • Fixed bug #29913 (parse_url() is now binary safe). (Ilia)
  • Fixed bug #27994 (segfault with Soapserver when WSDL-Cache is enabled). (Dmitry)
  • Fixed bug #27791 (Apache 2.0 SAPI build against Apache 2 HEAD). (Joe Orton, Derick)
  • Fixed bug #26737 (private/protected properties not serialized when user declared method __sleep() exists). E_NOTICE thrown when __sleep() returns name of non-existing member. (Andrey, Curt)

This list comes from the NEWS file that the PHP developers keep with the PHP source code, and the same list is also published on php.net.

Back to Guide Index
Article last updated: 21st October, 2026