PHP 5.0.5 came out on 5 September 2005. Below is the full list of changes it made, grouped by the part of PHP that each one affects.
The changes are listed in English, exactly as the PHP developers wrote them (157 in total).
Upgraded PCRE library to version 5.0. (Andrei) Removed php_check_syntax() function which never worked properly. (Ilia) Added new function mysqli_set_charset(). (Georg) Added man pages for "phpize" and "php-config" scripts. (Jakub Vrana) Added support for .cc files in extensions. (Brian) Added PHP_INT_MAX and PHP_INT_SIZE as predefined constants. (Andrey) Changed sha1_file() and md5_file() functions to use streams instead of low level IO. (Uwe) Changed ming to support official 0.2a and 0.3 library versions. (Marcus) Fixed failing queries problem (FALSE returned) with mysqli_query() on 64 bit. (Andrey) Fixed memory corruption in pg_copy_from() in case the as_null parameter was passed. (Derick) Fixed ext/mysqli to allocate less memory when fetching bound params of type (MEDIUM|LONG)BLOB/(MEDIUM|LONG)TEXT. (Andrey) Fixed memory corruption in ImageTTFText() with 64bit systems. (Andrey) Fixed memory corruption in stristr(). (Derick) Fixed segfaults when CURL callback functions throw exception. (Tony) Fixed various reentrancy bugs in user-sort functions, solves bugs #33286 and #33295 . (Mike Bretz) Fixed bug #34548 (Method append() in class extended from ArrayObject crashes PHP). (Tony) Fixed bug #34307 (on_modify handler not called to set the default value if setting from php.ini was invalid). (Andrei) Fixed bug #34302 (date('W') do not return leading zeros for week 1 to 9). (Derick) Fixed bug #34299 (ReflectionClass::isInstantiable() returns true for abstract classes). (Marcus) Fixed bug #34277 (array_filter() crashes with references and objects). (Dmitry) Fixed bug #34260 (Segfault with callbacks (array_map) + overloading). (Dmitry) Fixed bug #34137 (assigning array element by reference causes binary mess). (Dmitry) Fixed bug #34078 (Reflection API problems in methods with boolean or null default values). (Tony) Fixed bug #34064 (arr[] as param to function is allowed only if function receives argument by reference). (Dmitry) Fixed bug #34062 (Crash in catch block when many arguments are used). (Dmitry) Fixed bug #33989 (extract($GLOBALS,EXTR_REFS) crashes PHP). (Dmitry) Fixed bug #33966 (Wrong use of reflectionproperty causes a segfault). (Tony) Fixed bug #33940 (array_map() fails to pass by reference when called recursively). (Dmitry) Fixed bug #33853 (php:function call __autoload with lowercase param). (Marcus) Fixed bug #33802 (throw Exception in error handler causes crash). (Dmitry) Fixed bug #33723 (php_value overrides php_admin_value). (Dmitry) Fixed bug #33710 (ArrayAccess objects doen't initialize $this). (Dmitry) Fixed bug #33588 (LDAP: RootDSE query not possible). (Jani) Fixed bug #33558 (warning with nested calls to functions returning by reference). (Dmitry) Fixed bug #33520 (crash if safe_mode is on and session.save_path is changed). (Dmitry) Fixed bug #33491 (crash after extending MySQLi internal class). (Tony) Fixed bug #33340 (CLI Crash when calling php:function from XSLT). (Rob) Fixed bug #33277 (private method accessed by child class). (Dmitry) Fixed bug #33268 (iconv_strlen() works only with a parameter of < 3 in length). (Ilia) Fixed bug #33263 (mysqli_real_escape doesn't work in __construct) (Georg) Fixed bug #33257 (array_splice() inconsistent when passed function instead of variable). (Dmitry) Fixed bug #33243 (ze1_compatibility_mode does not work as expected). (Dmitry) Fixed bug #33242 (Mangled error message when stream fails). (Derick) Fixed bug #33222 (segfault when CURL handle is closed in a callback). (Tony) Fixed bug #33214 (odbc_next_result does not signal SQL errors with 2-statement SQL batches). (rich at kastle dot com, Tony) Fixed bug #33210 (relax jpeg recursive loop protection). (Ilia) Fixed bug #33200 (preg_replace(): magic_quotes_sybase=On makes 'e' modifier misbehave). (Jani) Fixed bug #33185 (--enable-session=shared does not build). (Jani) Fixed bug #33171 (foreach enumerates private fields declared in base classes). (Dmitry) Fixed bug #33164 (Soap extension incorrectly detects HTTP/1.1). (Ilia) Fixed bug #33156 (cygwin version of setitimer doesn't accept ITIMER_PROF). (Nuno) Fixed bug #33116 (crash when assigning class name to global variable in __autoload). (Dmitry) Fixed bug #33090 (mysqli_prepare() doesn't return an error). (Georg) Fixed bug #33076 (str_ireplace() incorrectly counts result string length and may cause segfault). (Tony) Fixed bug #33072 (Add a safemode/open_basedir check for runtime "session.save_path" change using session_save_path() function). (Rasmus) Fixed bug #33070 (Improved performance of bzdecompress() by several orders of magnitude). (Ilia) Fixed bug #33059 (crash when moving xml attribute set in dtd). (Ilia) Fixed bug #33057 (Don't send extraneous entity-headers on a 304 as per RFC 2616 section 10.3.5) (Rasmus, Choitel) Fixed bug #33019 (socket errors cause memory leaks in php_strerror()). (jwozniak23 at poczta dot onet dot pl, Tony). Fixed bug #33017 ("make distclean" gives an error with VPATH build). (Jani) Fixed bug #33013 ("next month" was handled wrong while parsing dates). (Derick) Fixed bug #32981 (ReflectionMethod::getStaticVariables() causes apache2.0.54 seg fault). (Dmitry) Fixed bug #32956 (mysql_bind_result() doesn't support MYSQL_TYPE_NULL). (Georg) Fixed bug #32947 (Incorrect option for mysqli default password). (Georg) Fixed bug #32944 (Disabling session.use_cookies doesn't prevent reading session cookies). (Jani, Tony) Fixed bug #32941 (Sending structured SOAP fault kills a php). (Dmitry) Fixed bug #32936 (http redirects URLs are not checked for control chars). (Ilia) Fixed bug #32933 (Cannot extend class "SQLiteDatabase"). (Marcus) Fixed bug #32932 (Oracle LDAP: ldap_get_entries(), invalid pointer). (Jani) Fixed bug #32930 (class extending DOMDocument doesn't clone properly). (Rob) Fixed bug #32904 (pg_get_notify() ignores result_type parameter). (Tony) Fixed bug #32852 (Crash with singleton and __destruct when zend.ze1_compatibility_mode = On). (Dmitry) Fixed bug #32813 (parse_url() does not handle scheme-only urls properly). (Ilia) Fixed bug #32810 (temporary files not using plain file wrapper). (Ilia) Fixed bug #32809 (Missing T1LIB support on Windows). (Edin) Fixed bug #32802 (General cookie overrides more specific cookie). (Ilia) Fixed bugs #32800 , #32830 (ext/odbc: Problems with 64bit systems). (Jani) Fixed bug #32799 (crash: calling the corresponding global var during the destruct). (Dmitry) Fixed bug #32776 (SOAP doesn't support one-way operations). (Dmitry) Fixed bug #32773 (GMP functions break when second parameter is 0). (Stas) Fixed bug #32759 (incorrect determination of default value (COM)). (Wez) Fixed bug #32758 (Cannot access safearray properties in VB6 objects). (Wez) Fixed bug #32755 (Segfault in replaceChild() when DocumentFragment has no children). (Rob) Fixed bug #32753 (Undefined constant SQLITE_NOTADB). (Ilia) Fixed bug #32742 (segmentation fault when the stream with a wrapper is not closed). (Tony, Dmitry) Fixed bug #32699 (pg_affected_rows() was defined when it was not available). (Derick) Fixed bug #32686 (Require/include file in destructor causes segfault). (Marcus) Fixed bug #32682 (ext/mssql: Error on module shutdown when called from activescript). (Frank) Fixed bug #32674 (exception in iterator causes crash). (Dmitry) Fixed bug #32660 (Assignment by reference causes crash when field access is overloaded (__get)). (Dmitry) Fixed bug #32647 (Using register_shutdown_function() with invalid callback can crash PHP). (Jani) Fixed bug #32615 (Segfault in replaceChild() using fragment when previousSibling is NULL). (Rob) Fixed bug #32613 (ext/snmp: use of snmp_shutdown() causes snmpapp.conf access errors). (Jani, ric at arizona dot edu) Fixed bug #32608 (html_entity_decode() converts single quotes even if ENT_NOQUOTES is given). (Ilia) Fixed bug #32596 (Segfault/Memory Leak by getClass (etc) in __destruct). (Dmitry) Fixed bug #32591 (ext/mysql: Unsatisfied symbol: ntohs with HP-UX). (Jani) Fixed bug #32589 (Possible crash inside imap_mail_compose, with charsets). (Ilia) Fixed bug #32587 (Apache2: errors sent to error_log do not include timestamps). (Jani) Fixed bug #32560 (configure looks for incorrect db2 library). (Tony) Fixed bug #32553 (mmap loads only the 1st 2000000 bytes on Win32). (Ilia) Fixed bug #32533 (proc_get_status() returns the incorrect process status). (Ilia) Fixed bug #32530 (chunk_split() does not append endstr if chunklen is longer then the original string). (Ilia) Fixed bug #32491 (File upload error - unable to create a temporary file). (Uwe Schindler) Fixed bug #32405 (mysqli::fetch() returns bad data - 64bit problem). (Andrey) Fixed bug #32282 (Segfault in mysqli_fetch_array on 64-bit). (Georg) Fixed bug #32296 (get_class_methods() output has changed between 5.0.2 and 5.0.3). (Dmitry) Fixed bug #32245 (xml_parser_free() in a function assigned to the xml parser gives a segfault). (Rob) Fixed bug #32171 (Userspace stream wrapper crashes PHP). (Tony, Dmitry) Fixed bug #32080 (segfault when assigning object to itself with zend.ze1_compatibility_mode=On). (Dmitry) Fixed bug #32013 (ext/mysqli bind_result causes fatal error: memory limit). (Andrey) Fixed bug #31887 (ISAPI: Custom 5xx error does not return correct HTTP response message). (Jani) Fixed bug #31828 (Crash with zend.ze1_compatibility_mode=On). (Dmitry) Fixed bug #31668 (multi_query works exactly every other time - multi query d/e flag global and not per connection). (Andrey) Fixed bug #31636 (another crash when echoing a COM object). (Wez) Fixed bug #31583 (php_std_date() uses short day names in non-y2k_compliance mode). (mike at php dot net) Fixed bug #31525 (object reference being dropped. $this getting lost). (Stas, Dmitry) Fixed bug #31502 (Wrong deserialization from session when using WDDX serializer). (Dmitry) Fixed bug #31465 (False warning in unpack() when working with *). (Ilia) Fixed bug #31363 (broken non-blocking flock()). ian at snork dot net Fixed bug #31213 (Sideeffects caused by fix of bug #29493 ). (Dmitry) Fixed bug #31158 (array_splice on $GLOBALS crashes). (Dmitry) Fixed bug #30961 (Wrong linenumber in ReflectionClass getStartLine()). (Dmitry) Fixed bug #30889 (Conflict between __get/__set and ++ operator). (Dmitry) Fixed bug #30833 (array_count_values() modifying input array). (Tony) Fixed bug #30828 (debug_backtrace() reports incorrect class in overridden methods). (Dmitry) Fixed bug #30820 (static member conflict with $this->member silently ignored). (Dmitry) Fixed bug #30819 (Better support for LDAP SASL bind). (Jani) Fixed bug #30791 (magic methods (__sleep/__wakeup/__toString) call __call if object is overloaded). (Dmitry) Fixed bug #30707 (Segmentation fault on exception in method). (Stas, Dmitry) Fixed bug #30702 (cannot initialize class variable from class constant). (Dmitry) Fixed bug #30519 (Interface not existing says Class not found). (Dmitry) Fixed bug #30394 (Assignment operators yield wrong result with __get/__set). (Dmitry) Fixed bug #30332 (zend.ze1_compatibility_mode isnt fully compatable with array_push()). (Dmitry) Fixed bug #30162 (Catching exception in constructor causes lose of $this). (Dmitry) Fixed bug #30140 (Problem with array in static properties). (Dmitry) Fixed bug #30126 (Enhancement for error message for abstract classes). (Marcus) Fixed bug #30080 (Passing array or non array of objects). (Dmitry) Fixed bug #29975 (memory leaks when set_error_handler() is used inside error handler). (Tony) Fixed bug #29971 (variables_order behaviour). (Dmitry) Fixed bug #29944 (Function defined in switch, crashes). (Dmitry) Fixed bug #29896 (Backtrace argument list out of sync). (Dmitry) Fixed bug #29683 (headers_list() returns empty array). (Tony) Fixed bug #29583 (crash when echoing a COM object). (M.Sisolak, Wez) Fixed bug #29338 (unencoded spaces get ignored after certain tags). (Ilia) Fixed bug #29210 (Function: is_callable - no support for private and protected classes). (Dmitry) Fixed bug #29104 (Function declaration in method doesn't work). (Dmitry) Fixed bug #29015 (Incorrect behavior of member vars(non string ones)-numeric mem vars und others). (Dmitry) Fixed bug #28839 (SIGSEGV in interactive mode (php -a)). (kameshj at fastmail dot fm) Fixed bug #28605 (Need to use -[m]ieee option for Alpha CPUs). (Jani) Fixed bug #28377 (debug_backtrace is intermittently passing args). (Dmitry) Fixed bug #27598 (list() array key assignment causes HUGE memory leak). (Dmitry) Fixed bug #26456 (Wrong results from Reflection-API getDocComment() when called via STDIN). (Dmitry) Fixed bug #25922 (In error handler, modifying 5th arg (errcontext) may result in seg fault). (Dmitry) Fixed bug #22836 (returning reference to uninitialized variable). (Dmitry) Fixed bug #29689 (default value of protected member overrides default value of private) and other private variable problems in inherited classes (Stas) Fixed bug #29253 (array_diff with $GLOBALS argument fails). (Dmitry) Abstract private methods are no longer allowed (Stas)
← Previous release: PHP 5.0.4
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 .
Related articles
Useful articles to help you determine if you need to upgrade your server's PHP version and how to go about doing so.
Read more →
If you don't want to use our tool or have already tried what follows is a list of three simple tests you can perform to determine your PHP version.We have listed them in order of complexity, starting with the easiest.
Read more →
← Back to Guide Index
Article last updated: 21st October, 2026