Version 5.4

PHP 5.4.45
Released 03 Sep, 2015
PHP 5.4.44
Released 06 Aug, 2015
PHP 5.4.43
Released 09 Jul, 2015
PHP 5.4.42
Released 11 Jun, 2015
PHP 5.4.41
Released 14 May, 2015
PHP 5.4.40
Released 16 Apr, 2015
PHP 5.4.39
Released 19 Mar, 2015
PHP 5.4.38
Released 19 Feb, 2015
PHP 5.4.37
Released 22 Jan, 2015
PHP 5.4.36
Released 18 Dec, 2014
PHP 5.4.35
Released 13 Nov, 2014
PHP 5.4.34
Released 16 Oct, 2014
fileinfo
  • Fixed bug #66242 (libmagic: don't assume char is signed).
core
  • Fixed bug #67985 (Incorrect last used array index copied to new array after unset).
  • Fixed bug #68044 (Integer overflow in unserialize() (32-bits only)). (CVE-2014-3669)
curl
  • Fixed bug #68089 (NULL byte injection - cURL lib).
exif
  • Fixed bug #68113 (Heap corruption in exif_thumbnail()). (CVE-2014-3670)
openssl
  • Reverted fixes for bug #41631, due to regressions.
xmlrpc
  • Fixed bug #68027 (Global buffer overflow in mkgmtime() function). (CVE-2014-3668)
PHP 5.4.33
Released 18 Sep, 2014
core
  • Fixed bug #47358 (glob returns error, should be empty array()).
  • Fixed bug #65463 (SIGSEGV during zend_shutdown()).
  • Fixed bug #66036 (Crash on SIGTERM in apache process).
openssl
  • Fixed bug #41631 (socket timeouts not honored in blocking SSL reads).
date
  • Fixed bug #66091 (memory leaks in DateTime constructor).
fpm
  • Fixed #67606 (FPM with mod_fastcgi/apache2.4 is broken).
gd
  • Made fontFetch's path parser thread-safe.
wddx
  • Fixed bug #67873 (Segfaults in php_wddx_serialize_var).
zlib
  • Fixed bug #67724 (chained zlib filters silently fail with large amounts of data).
  • Fixed bug #67865 (internal corruption phar error).
PHP 5.4.32
Released 21 Aug, 2014
com
  • Fixed missing type checks in com_event_sink.
  • Fixed bug #41577 (DOTNET is successful once per server run).
fileinfo
  • Fixed bug #67705 (extensive backtracking in rule regular expression). (CVE-2014-3538)
  • Fixed bug #67716 (Segfault in cdf.c). (CVE-2014-3587)
gd
  • Fixed bug #66901 (php-gd 'c_color' NULL pointer dereference). (CVE-2014-2497).
  • Fixed bug #67730 (Null byte injection possible with imagexxx functions). (CVE-2014-5120)
litespeed
  • Updated LiteSpeed SAPI code from V5.5 to V6.6
network
  • Fixed bug #67717 (segfault in dns_get_record). (CVE-2014-3597)
milter
  • Fixed bug #67715 (php-milter does not build and crashes randomly).
openssl
  • Fixed missing type checks in OpenSSL options .
readline
  • Fixed bug #55496 (Interactive mode doesn't force a newline before the prompt).
  • Fixed bug #67496 (Save command history when exiting interactive shell with control-c).
sessions
  • Fixed missing type checks in php_session_create_id. .
spl
  • Fixed bug #67539 (ArrayIterator use-after-free due to object change during sorting). (CVE-2014-4698)
  • Fixed bug #67538 (SPL Iterators use-after-free). (CVE-2014-4670)
core
  • Fixed bug #67693 (incorrect push to the empty array)
odbc
  • Fixed bug #60616 (odbc_fetch_into returns junk data at end of multi-byte char fields).
mysqli
  • Fixed bug #67839 (mysqli does not handle 4-byte floats correctly).
PHP 5.4.31
Released 24 Jul, 2014
core
  • Fixed bug #67428 (header('Location: foo') will override a 308-399 response code).
  • Fixed bug #67436 (Autoloader isn't called if two method definitions don't match).
  • Fixed bug #67091 (make install fails to install libphp5.so on FreeBSD 10.0).
  • Fixed bug #67151 (strtr with empty array crashes).
  • Fixed bug #67407 (Windows 8.1/Server 2012 R2 reported as Windows 8/Server 2012).
  • Implemented FR #34407 (ucwords and Title Case).
cli server
  • Implemented FR #67429 (CLI server is missing some new HTTP response codes).
  • Fixed bug #66830 (Empty header causes PHP built-in web server to hang).
fpm
  • Fixed bug #67530 (error_log=syslog ignored).
  • Fixed bug #67531 (syslog cannot be set in pool configuration).
intl
  • Fixed bug #67052 (NumberFormatter::parse() resets LC_NUMERIC setting).
pgsql
  • Fixed bug #67550 (Error in code "form" instead of "from", pgsql.c, line 756), which affected builds against libpq < 7.3.
phar
  • Fixed bug #67587 (Redirection loop on nginx with FPM).
streams
  • Fixed bug #67430 (http:// wrapper doesn't follow 308 redirects).
session
  • Fixed bug #66827 (Session raises E_NOTICE when session name variable is array).
PHP 5.4.30
Released 26 Jun, 2014
core
  • Fixed BC break introduced by patch for bug #67072.
  • Fixed bug #66622 (Closures do not correctly capture the late bound class (static::) in some cases).
  • Fixed bug #67390 (insecure temporary file use in the configure script). (Remi)
  • Fixed bug #67399 (putenv with empty variable may lead to crash).
  • Fixed bug #67498 (phpinfo() Type Confusion Information Leak Vulnerability).
cli server
  • Fixed Bug #67406 (built-in web-server segfaults on startup).
date
  • Fixed bug #67308 (Serialize of DateTime truncates fractions of second).
  • Fixed regression in fix for bug #67118 (constructor can't be called twice).
fileinfo
  • Fixed bug #67326 (fileinfo: cdf_read_short_sector insufficient boundary check).
  • Fixed bug #67410 (fileinfo: mconvert incorrect handling of truncated pascal string size). (CVE-2014-3478)
  • Fixed bug #67411 (fileinfo: cdf_check_stream_offset insufficient boundary check). (CVE-2014-3479)
  • Fixed bug #67412 (fileinfo: cdf_count_chain insufficient boundary check). (CVE-2014-3480)
  • Fixed bug #67413 (fileinfo: cdf_read_property_info insufficient boundary check). (CVE-2014-3487)
intl
  • Fixed bug #67349 (Locale::parseLocale Double Free).
  • Fixed bug #67397 (Buffer overflow in locale_get_display_name and uloc_getDisplayName (libicu 4.8.1)).
network
  • Fixed bug #67432 (Fix potential segfault in dns_get_record()). (CVE-2014-4049).
openssl
  • Fixed bug #65698 (certificates validity parsing does not work past 2050).
  • Fixed bug #66636 (openssl_x509_parse warning with V_ASN1_GENERALIZEDTIME).
soap
  • Implemented FR #49898 (Add SoapClient::__getCookies()).
spl
  • Fixed bug #66127 (Segmentation fault with ArrayObject unset).
  • Fixed bug #67359 (Segfault in recursiveDirectoryIterator).
  • Fixed bug #67360 (Missing element after ArrayObject::getIterator).
  • Fixed bug #67492 (unserialize() SPL ArrayObject / SPLObjectStorage Type Confusion) (CVE-2014-3515).
PHP 5.4.29
Released 29 May, 2014
com
  • Fixed bug #66431 (Special Character via COM Interface (CP_UTF8)).
core
  • Fixed bug #65701 (copy() doesn't work when destination filename is created by tempnam()).
  • Fixed bug #67072 (Echoing unserialized "SplFileObject" crash).
  • Fixed bug #67245 (usage of memcpy() with overlapping src and dst in zend_exceptions.c).
  • Fixed bug #67247 (spl_fixedarray_resize integer overflow).
  • Fixed bug #67249 (printf out-of-bounds read).
  • Fixed bug #67250 (iptcparse out-of-bounds read).
  • Fixed bug #67252 (convert_uudecode out-of-bounds read).
date
  • Fixed bug #67118 (DateTime constructor crash with invalid data).
  • Fixed bug #67251 (date_parse_from_format out-of-bounds read).
  • Fixed bug #67253 (timelib_meridian_with_check out-of-bounds read).
dom
  • Fixed bug #67081 (DOMDocumentType->internalSubset returns entire DOCTYPE tag, not only the subset).
fileinfo
  • Fixed bug #66307 (Fileinfo crashes with powerpoint files).
  • Fixed bug #67327 (fileinfo: CDF infinite loop in nelements DoS).
  • Fixed bug #67328 (fileinfo: fileinfo: numerous file_printf calls resulting in performance degradation).
fpm
  • Fixed bug #66908 (php-fpm reload leaks epoll_create() file descriptor).
phar
  • Fix bug #64498 ($phar->buildFromDirectory can't compress file with an accent in its name).
PHP 5.4.28
Released 02 May, 2014
core
  • Fixed bug #61019 (Out of memory on command stream_get_contents).
  • Fixed bug #64330 (stream_socket_server() creates wrong Abstract Namespace UNIX sockets).
  • Fixed bug #66171 (Symlinks and session handler allow open_basedir bypass).
  • Fixed bug #66182 (exit in stream filter produces segfault).
  • Fixed bug #66736 (fpassthru broken).
  • Fixed bug #67024 (getimagesize should recognize BMP files with negative height).
  • Fixed bug #67033 (Remove reference to Windows 95).
curl
  • Fixed bug #66562 (curl_exec returns differently than curl_multi_getcontent).
date
  • Fixed bug #66721 (__wakeup of DateTime segfaults when invalid object data is supplied).
embed
  • Fixed bug #65715 (php5embed.lib isn't provided anymore).
fileinfo
  • Fixed bug #66987 (Memory corruption in fileinfo ext / bigendian).
fpm
  • Fixed bug #66482 .
  • Fixed bug #67060 (sapi/fpm: possible privilege escalation due to insecure default configuration) (CVE-2014-0185).
json
  • Fixed bug #66021 (Blank line inside empty array/object when JSON_PRETTY_PRINT is set).
ldap
  • Fixed issue with null bytes in LDAP bindings.
openssl
  • Fix bug #66942 (memory leak in openssl_seal()).
  • Fix bug #66952 (memory leak in openssl_open()).
simplexml
  • Fixed bug #66084 (simplexml_load_string() mangles empty node name)
xsl
  • Fixed bug #53965 (<xsl:include> cannot find files with relative paths when loaded with "file://").
apache2 handler sapi
  • Fixed Apache log issue caused by APR's lack of support for %zu (APR issue https://issues.apache.org/bugzilla/show_bug.cgi?id=56120).
PHP 5.4.27
Released 03 Apr, 2014
core
  • Fixed bug #60602 (proc_open() changes environment array)
fileinfo
  • Fixed bug #66946 (fileinfo: extensive backtracking in awk rule regular expression). (CVE-2013-7345)
fpm
  • Added clear_env configuration directive to disable clearenv() call.
  • GMP
  • Fixed bug #66872 (invalid argument crashes gmp_testbit)
mail
  • Fixed bug #66535 (Don't add newline after X-PHP-Originating-Script)
mysqli
  • Fixed bug #66762 (Segfault in mysqli_stmt::bind_result() when link closed)
openssl
  • Fixed bug #66833 (Default disgest algo is still MD5, switch to SHA1).
PHP 5.4.26
Released 06 Mar, 2014
json
  • Fixed bug #65753 (JsonSerializeable couldn't implement on module extension)
fileinfo
  • Fixed bug #66731 (file: infinite recursion). (CVE-2014-1943)
  • Fixed bug #66820 (out-of-bounds memory access in fileinfo).
ldap
  • Implemented ldap_modify_batch (https://wiki.php.net/rfc/ldap_modify_batch).
openssl
  • Fixed bug #66501 (Add EC key support to php_openssl_is_private_key).
pgsql
  • Added warning for dangerous client encoding and remove possible injections for pg_insert()/pg_update()/pg_delete()/pg_select().
PHP 5.4.25
Released 06 Feb, 2014
core
  • Fixed bug #66286 (Incorrect object comparison with inheritance).
  • Fixed bug #66509 (copy() arginfo has changed starting from 5.4).
mysqlnd
  • Fixed bug #66283 (Segmentation fault after memory_limit).
pdo_pgsql
  • Fixed bug #62479 (PDO-psql cannot connect if password contains spaces).
session
  • Fixed bug #66481 (Calls to session_name() segfault when session.name is null).
PHP 5.4.24
Released 09 Jan, 2014
core
  • Added validation of class names in the autoload process.
  • Fixed invalid C code in zend_strtod.c.
  • Fixed bug #61645 (fopen and O_NONBLOCK).
date
  • Fixed bug #66060 (Heap buffer over-read in DateInterval). (CVE-2013-6712)
  • Fixed bug #63391 (Incorrect/inconsistent day of week prior to the year 1600).
  • Fixed bug #61599 (Wrong Day of Week).
dom
  • Fixed bug #65196 (Passing DOMDocumentFragment to DOMDocument::saveHTML() Produces invalid Markup).
exif
  • Fixed bug #65873 (Integer overflow in exif_read_data()).
filter
  • Fixed bug #66229 (128.0.0.0/16 isn't reserved any longer).
gd
  • Fixed bug #64405 (Use freetype-config for determining freetype2 dir(s)).
pdo_odbc
  • Fixed bug #66311 (Stack smashing protection kills PDO/ODBC queries).
snmp
  • Fixed SNMP_ERR_TOOBIG handling for bulk walk operations.
  • XSL
  • Fixed bug #49634 (Segfault throwing an exception in a XSL registered function).
zip
  • Fixed Bug #66321 (ZipArchive::open() ze_obj->filename_len not real).
PHP 5.4.23
Released 12 Dec, 2013
core
  • Fixed bug #66094 (unregister_tick_function tries to cast a Closure to a string).
  • Fixed bug #65969 (Chain assignment with T_LIST failure).
  • Fixed bug #65947 (basename is no more working after fgetcsv in certain situation).
  • JSON
  • Fixed whitespace part of bug #64874 ("json_decode handles whitespace and case-sensitivity incorrectly").
mysqli
  • Fixed bug #66043 (Segfault calling bind_param() on mysqli).
mysqlnd
  • Fixed bug #66124 (mysqli under mysqlnd loses precision when bind_param with 'i').
  • Fixed bug #66141 (mysqlnd quote function is wrong with NO_BACKSLASH_ESCAPES after failed query).
openssl
  • Fixed memory corruption in openssl_x509_parse() (CVE-2013-6420). .
  • PDO
  • Fixed bug 65946
PHP 5.4.22
Released 14 Nov, 2013
core
  • Fixed bug #65911 (scope resolution operator - strange behavior with $this).
cli server
  • Fixed bug #65818 (Segfault with built-in webserver and chunked transfer encoding).
exif
  • Fixed crash on unknown encoding.
ftp
  • Fixed bug #65667 (ftp_nb_continue produces segfault).
odbc
  • Fixed bug #65950 (Field name truncation if the field name is bigger than 32 characters).
pdo
  • Fixed bug #66033 (Segmentation Fault when constructor of PDO statement throws an exception).
sockets
  • Fixed bug #65808 (the socket_connect() won't work with IPv6 address).
standard
  • Fixed bug #64760 (var_export() does not use full precision for floating-point numbers)
  • Fixed bug #66395 (basename function doesn't remove drive letter).
xmlreader
  • Fixed bug #51936 (Crash with clone XMLReader).
  • Fixed bug #64230 (XMLReader does not suppress errors).
PHP 5.4.21
Released 17 Oct, 2013
core
  • Fixed bug #65322 (compile time errors won't trigger auto loading).
cli server
  • Fixed bug #65633 (built-in server treat some http headers as case-sensitive).
datetime
  • Fixed bug #64157 (DateTime::createFromFormat() reports confusing error message).
dba extension
  • Fixed bug #65708 (dba functions cast $key param to string in-place, bypassing copy on write).
filter
  • Add RFC 6598 IPs to reserved addresses.
  • Fixed bug #64441 (FILTER_VALIDATE_URL rejects fully qualified domain names).
imap
  • Fixed bug #65721 (configure script broken in 5.5.4 and 5.4.20 when enabling imap).
standard
  • Fixed bug #61548 (content-type must appear at the end of headers for 201 Location to work in http).
build system
  • Fixed bug #62396 ('make test' crashes starting with 5.3.14 (missing gzencode())).
PHP 5.4.20
Released 19 Sep, 2013
core
  • Fixed bug #60598 (cli/apache sapi segfault on objects manipulation).
  • Fixed bug #65579 (Using traits with get_class_methods causes segfault).
  • Fixed bug #65490 (Duplicate calls to get lineno & filename for DTRACE_FUNCTION_*).
  • Fixed bug #65483 (quoted-printable encode stream filter incorrectly encoding spaces).
  • Fixed bug #65481 (shutdown segfault due to serialize)
  • Fixed bug #65470 (Segmentation fault in zend_error() with --enable-dtrace).
  • Fixed bug #65372 (Segfault in gc_zval_possible_root when return reference fails).
  • Fixed bug #65304 (Use of max int in array_sum).
  • Fixed bug #65291 (get_defined_constants() causes PHP to crash in a very limited case).
  • Fixed bug #65225 (PHP_BINARY incorrectly set).
  • Improved fix for bug #63186 (compile failure on netbsd).
  • Fixed bug #62692 (PHP fails to build with DTrace).
  • Fixed bug #61759 (class_alias() should accept classes with leading backslashes).
  • Fixed bug #61345 (CGI mode - make install don't work).
  • Cherry-picked some DTrace build commits from PHP 5.5 branch
  • Fixed bug #61268 (--enable-dtrace leads make to clobber Zend/zend_dtrace.d)
curl
  • Fixed bug #65458 (curl memory leak).
datetime
  • Fixed bug #65554 (createFromFormat broken when weekday name is followed by some delimiters). .
  • Fixed bug #65564 (stack-buffer-overflow in DateTimeZone stuff caught by AddressSanitizer). .
openssl
  • Fixed bug #64802 (openssl_x509_parse fails to parse subject properly in some cases).
session
  • Fixed bug #62129 (rfc1867 crashes php even though turned off).
  • Fixed bug #50308 (session id not appended properly for empty anchor tags).
  • Fixed possible buffer overflow under Windows. Note: Not a security fix.
  • Changed session.auto_start to PHP_INI_PERDIR.
soap
  • Fixed bug #65018 (SoapHeader problems with SoapServer).
spl
  • Fixed bug #65328 (Segfault when getting SplStack object Value).
pdo
  • Fixed bug #64953 (Postgres prepared statement positional parameter casting).
phar
  • Fixed bug #65028 (Phar::buildFromDirectory creates corrupt archives for some specific contents).
pgsql
  • Fixed bug #65336 (pg_escape_literal/identifier() silently returns false).
  • Fixed bug #62978 (Disallow possible SQL injections with pg_select()/pg_update() /pg_delete()/pg_insert()).
zlib
  • Fixed bug #65391 (Unable to send vary header user-agent when ob_start('ob_gzhandler') is called)
PHP 5.4.19
Released 22 Aug, 2013
core
  • Fixed bug #64503 (Compilation fails with error: conflicting types for 'zendparse').
openssl
  • Fixed UMR in fix for CVE-2013-4248.
PHP 5.4.18
Released 04 Jul, 2013
core
  • Fixed value of FILTER_SANITIZE_FULL_SPECIAL_CHARS constant (previously was erroneously set to FILTER_SANITIZE_SPECIAL_CHARS value). .
  • Fixed bug #65254 (Exception not catchable when exception thrown in autoload with a namespace).
  • Fixed bug #65108 (is_callable() triggers Fatal Error).
  • Fixed bug #65088 (Generated configure script is malformed on OpenBSD).
  • Fixed bug #62964 (Possible XSS on "Registered stream filters" info).
  • Fixed bug #62672 (Error on serialize of ArrayObject).
  • Fixed bug #62475 (variant_* functions causes crash when null given as an argument).
  • Fixed bug #60732 (php_error_docref links to invalid pages).
  • Fixed bug #65226 (chroot() does not get enabled).
cgi
  • Fixed Bug #65143 (Missing php-cgi man page).
cli server
  • Fixed bug #65066 (Cli server not responsive when responding with 422 http status code).
curl
  • Fixed bug #62665 (curl.cainfo doesn't appear in php.ini).
fpm
  • Fixed bug #63983 (enabling FPM borks compile on FreeBSD).
ftp
  • Fixed bug #65228 (FTPs memory leak with SSL).
gmp
  • Fixed bug #65227 (Memory leak in gmp_cmp second parameter).
imap
  • Fixed bug #64467 (Segmentation fault after imap_reopen failure).
intl
  • Fixed bug #62759 (Buggy grapheme_substr() on edge case).
  • Fixed bug #61860 (Offsets may be wrong for grapheme_stri* functions).
mysqlnd
  • Fixed segfault in mysqlnd when doing long prepare.
odbc
  • Fixed bug #61387 (NULL valued anonymous column causes segfault in odbc_fetch_array).
openssl
  • Fixed handling null bytes in subjectAltName (CVE-2013-4248).
pdo
  • Allowed PDO_OCI to compile with Oracle Database 12c client libraries.
pdo_dblib
  • Fixed bug #65219 (PDO/dblib not working anymore ("use dbName" not sent)).
pdo_pgsql
  • Fixed meta data retrieve when OID is larger than 2^31.
phar
  • Fixed Bug #65142 (Missing phar man page).
  • Session
  • Fixed bug #62535 ($_SESSION[$key]["cancel_upload"] doesn't work as documented).
  • Fixed bug #35703 (when session_name("123") consist only digits, should warning).
  • Fixed bug #49175 (mod_files.sh does not support hash bits). Patch by oorza2k5 at gmail dot com
sockets
  • Implemented FR #63472 (Setting SO_BINDTODEVICE with socket_set_option).
spl
  • Fixed bug #65136 (RecursiveDirectoryIterator segfault).
  • Fixed bug #61828 (Memleak when calling Directory(Recursive)Iterator /Spl(Temp)FileObject ctor twice).
  • Fixed bug #60560 (SplFixedArray un-/serialize, getSize(), count() return 0, keys are strings).
xml
  • Fixed bug #65236 (heap corruption in xml parser, CVE-2013-4113).
PHP 5.4.17
Released 04 Jul, 2013
core
  • Fixed bug #64988 (Class loading order affects E_STRICT warning).
  • Fixed bug #64966 (segfault in zend_do_fcall_common_helper_SPEC).
  • Fixed bug #64960 (Segfault in gc_zval_possible_root).
  • Fixed bug #64936 (doc comments picked up from previous scanner run).
  • Fixed bug #64934 (Apache2 TS crash with get_browser()).
  • Fixed bug #64166 (quoted-printable-encode stream filter incorrectly discarding whitespace).
datetime
  • Fixed bug #53437 (Crash when using unserialized DatePeriod instance).
fpm
  • Fixed Bug #64915 (error_log ignored when daemonize=0).
  • Implemented FR #64764 (add support for FPM init.d script).
pdo
  • Fixed bug #63176 (Segmentation fault when instantiate 2 persistent PDO to the same db server).
pdo_dblib
  • Fixed bug #63638 (Cannot connect to SQL Server 2008 with PDO dblib).
  • Fixed bug #64338 (pdo_dblib can't connect to Azure SQL).
  • Fixed bug #64808 (FreeTDS PDO getColumnMeta on a prepared but not executed statement crashes).
pdo_firebird
  • Fixed bug #64037 (Firebird return wrong value for numeric field).
  • Fixed bug #62024 (Cannot insert second row with null using parametrized query).
pdo_mysql
  • Fixed bug #48724 (getColumnMeta() doesn't return native_type for BIT, TINYINT and YEAR).
pdo_pgsql
  • Fixed Bug #64949 (Buffer overflow in _pdo_pgsql_error).
pgsql
  • Fixed bug #64609 (pg_convert enum type support).
  • Fixed bug #65015 (pg_send_query does not flush send buffer) patch submitted by: adam at vektah dot net
readline
  • Implement FR #55694 (Expose additional readline variable to prevent default filename completion).
spl
  • Fixed bug #64997 (Segfault while using RecursiveIteratorIterator on 64-bits systems).
PHP 5.4.16
Released 09 May, 2013
core
  • Fixed bug #64879 (Heap based buffer overflow in quoted_printable_encode, CVE 2013-2110).
  • Fixed bug #64853 (Use of no longer available ini directives causes crash on TS build).
  • Fixed bug #64729 (compilation failure on x32).
  • Fixed bug #64720 (SegFault on zend_deactivate).
  • Fixed bug #64660 (Segfault on memory exhaustion within function definition).
calendar
  • Fixed bug #64895 (Integer overflow in SndToJewish).
fileinfo
  • Fixed bug #64830 (mimetype detection segfaults on mp3 file).
fpm
  • Ignore QUERY_STRING when sent in SCRIPT_FILENAME.
  • Fixed some possible memory or resource leaks and possible null dereference detected by code coverity scan.
  • Log a warning when a syscall fails.
  • Add --with-fpm-systemd option to report health to systemd, and systemd_interval option to configure this. The service can now use Type=notify in the systemd unit file.
  • MySQLi
  • Fixed bug #64726 (Segfault when calling fetch_object on a use_result and DB pointer has closed).
  • Phar
  • Fixed bug #64214 (PHAR PHPTs intermittently crash when run on DFS, SMB or with non std tmp dir).
snmp
  • Fixed bug #64765 (Some IPv6 addresses get interpreted wrong).
  • Fixed bug #64159 (Truncated snmpget).
streams
  • Fixed bug #64770 (stream_select() fails with pipes returned by proc_open() on Windows x64).
zend engine
  • Fixed bug #64821 (Custom Exceptions crash when internal properties overridden).
PHP 5.4.15
Released 09 May, 2013
core
  • Fixed bug #64578 (debug_backtrace in set_error_handler corrupts zend heap: segfault).
  • Fixed bug #64458 (dns_get_record result with string of length -1).
  • Fixed bug #64433 (follow_location parameter of context is ignored for most response codes).
  • Fixed bugs #47675 and #64577
fileinfo
  • Upgraded libmagic to 5.14.
mysqli
  • Fixed bug #64726 (Segfault when calling fetch_object on a use_result and DB pointer has closed).
zip
  • Fixed bug #64342 (ZipArchive::addFile() has to check for file existence).
streams
  • Fixed Windows x64 version of stream_socket_pair() and improved error handling.
  • Fixed bug #64770 (stream_select() fails with pipes returned by proc_open() on Windows x64).
PHP 5.4.14
Released 11 Apr, 2013
core
  • Fixed bug #64529 (Ran out of opcode space).
  • Fixed bug #64515 (Memoryleak when using the same variablename two times in function declaration).
  • Fixed bug #64432 (more empty delimiter warning in strX methods).
  • Fixed bug #64417 (ArrayAccess::&offsetGet() in a trait causes fatal error).
  • Fixed bug #64370 (microtime(true) less than $_SERVER['REQUEST_TIME_FLOAT']).
  • Fixed bug #64239 (Debug backtrace changed behavior since 5.4.10 or 5.4.11).
  • Fixed bug #63976 (Parent class incorrectly using child constant in class property).
  • Fixed bug #63914 (zend_do_fcall_common_helper_SPEC does not handle exceptions properly).
  • Fixed bug #62343 (Show class_alias In get_declared_classes())
pcre
  • Merged PCRE 8.32.
snmp
  • Fixed bug #61981 (OO API, walk: $suffix_as_key is not working correctly).
zip
  • Bug #64452 (Zip crash intermittently).
PHP 5.4.13
Released 14 Mar, 2013
core
  • Fixed bug #64354 (Unserialize array of objects whose class can't be autoloaded fail).
  • Fixed bug #64235 (Insteadof not work for class method in 5.4.11).
  • Fixed bug #64197 (_Offsetof() macro used but not defined on ARM/Clang).
  • Implemented FR #64175 (Added HTTP codes as of RFC 6585).
  • Fixed bug #64142 (dval to lval different behavior on ppc64).
  • Fixed bug #64070 (Inheritance with Traits failed with error).
cli server
  • Fixed bug #64128 (buit-in web server is broken on ppc64).
mbstring
  • mb_split() can now handle empty matches like preg_split() does.
  • mysqlnd
  • Fixed bug #63530 (mysqlnd_stmt::bind_one_parameter crashes, uses wrong alloc for stmt->param_bind).
openssl
  • New SSL stream context option to prevent CRIME attack vector.
  • Fixed bug #61930 (openssl corrupts ssl key resource when using openssl_get_publickey()).
pdo_mysql
  • Fixed bug #60840 (undefined symbol: mysqlnd_debug_std_no_trace_funcs).
phar
  • Fixed timestamp update on Phar contents modification.
  • SOAP
  • Added check that soap.wsdl_cache_dir conforms to open_basedir (CVE-2013-1635).
  • Disabled external entities loading (CVE-2013-1643, CVE-2013-1824).
spl
  • Fixed bug #64264 (SPLFixedArray toArray problem).
  • Fixed bug #64228 (RecursiveDirectoryIterator always assumes SKIP_DOTS).
  • Fixed bug #64106 (Segfault on SplFixedArray[][x] = y when extended).
  • Fixed bug #52861 (unset fails with ArrayObject and deep arrays).
snmp
  • Fixed bug #64124 (IPv6 malformed).
PHP 5.4.12
Released 21 Feb, 2013
core
  • Fixed bug #64099 (Wrong TSRM usage in zend_Register_class alias).
  • Fixed bug #64011 (get_html_translation_table() output incomplete with HTML_ENTITIES and ISO-8859-1).
  • Fixed bug #63982 (isset() inconsistently produces a fatal error on protected property).
  • Fixed bug #63943 (Bad warning text from strpos() on empty needle).
  • Fixed bug #63899 (Use after scope error in zend_compile).
  • Fixed bug #63893 (Poor efficiency of strtr() using array with keys of very different length).
  • Fixed bug #63882 (zend_std_compare_objects crash on recursion).
  • Fixed bug #63462 (Magic methods called twice for unset protected properties).
  • Fixed bug #62524 (fopen follows redirects for non-3xx statuses).
  • Support BITMAPV5HEADER in getimagesize().
date
  • Fixed bug #63699 (Performance improvements for various ext/date functions).
  • Fixed bug #55397: Comparsion of incomplete DateTime causes SIGSEGV.
fpm
  • Fixed bug #63999 (php with fpm fails to build on Solaris 10 or 11).
litespeed
  • Fixed bug #63228 (-Werror=format-security error in lsapi code).
ext/sqlite3
  • Fixed bug #63921 (sqlite3::bindvalue and relative PHP functions aren't using sqlite3_*_int64 API).
  • PDO_OCI
  • Fixed bug #57702 (Multi-row BLOB fetches).
  • Fixed bug #52958 (Segfault in PDO_OCI on cleanup after running a long testsuite).
pdo_sqlite
  • Fixed bug #63916 (PDO::PARAM_INT casts to 32bit int internally even on 64bit builds in pdo_sqlite).
PHP 5.4.11
Released 17 Jan, 2013
core
  • Fixed bug #63762 (Sigsegv when Exception::$trace is changed by user).
  • Fixed bug #43177 (Errors in eval()'ed code produce status code 500). .
filter
  • Fixed bug #63757 (getenv() produces memory leak with CGI SAPI).
  • Fixed bug #54096 (FILTER_VALIDATE_INT does not accept +0 and -0).
json
  • Fixed bug #63737 (json_decode does not properly decode with options parameter).
  • CLI server
  • Update list of common mime types. Added webm, ogv, ogg.
curl extension
  • Fixed bug (segfault due to libcurl connection caching).
  • Fixed bug #63859 (Memory leak when reusing curl-handle).
  • Fixed bug #63795 (CURL >= 7.28.0 no longer support value 1 for CURLOPT_SSL_VERIFYHOST).
  • Fixed bug #63352 (Can't enable hostname validation when using curl stream wrappers).
  • Fixed bug #55438 (Curlwapper is not sending http header randomly).
PHP 5.4.10
Released 20 Dec, 2012
core
  • Fixed bug #63726 (Memleak with static properties and internal/user classes).
  • Fixed bug #63635 (Segfault in gc_collect_cycles).
  • Fixed bug #63512 (parse_ini_file() with INI_SCANNER_RAW removes quotes from value).
  • Fixed bug #63468 (wrong called method as callback with inheritance).
  • Fixed bug #63451 (config.guess file does not have AIX 7 defined, shared objects are not created).
  • Fixed bug #61557 (Crasher in tt-rss backend.php).
  • Fixed bug #61272 (ob_start callback gets passed empty string).
date
  • Fixed bug #63666 (Poor date() performance). .
  • Fixed bug #63435 (Datetime::format('u') sometimes wrong by 1 microsecond).
imap
  • Fixed bug #63126 (DISABLE_AUTHENTICATOR ignores array).
json
  • Fixed bug #63588 (use php_next_utf8_char and remove duplicate implementation).
mysqli
  • Fixed bug #63361 (missing header).
mysqlnd
  • Fixed bug #63398 (Segfault when polling closed link).
fileinfo
  • Fixed bug #63590 (Different results in TS and NTS under Windows).
fpm
  • Fixed bug #63581 Possible null dereference and buffer overflow
pdo_sqlite
  • Fixed Bug #63149 getColumnMeta should return the table name when system SQLite used.
apache2 handler sapi
  • Enabled Apache 2.4 configure option for Windows
reflection
  • Fixed Bug #63614 (Fatal error on Reflection).
  • SOAP
  • Fixed bug #63271 (SOAP wsdl cache is not enabled after initial requests).
  • Sockets
  • Fixed bug #49341 (Add SO_REUSEPORT support for socket_set_option()).
  • SPL
  • Fixed bug #63680 (Memleak in splfixedarray with cycle reference).
PHP 5.4.9
Released 22 Nov, 2012
core
  • Fixed bug #63305 (zend_mm_heap corrupted with traits).
  • Fixed bug #63369 ((un)serialize() leaves dangling pointers, causes crashes).
  • Fixed bug #63241 (PHP fails to open Windows deduplicated files).
  • Fixed bug #62444 (Handle leak in is_readable on windows).
curl
  • Fixed bug #63363 (Curl silently accepts boolean true for SSL_VERIFYHOST). Patch by John Jawed Fixed issue GH-221
fileinfo
  • Fixed bug #63248 (Load multiple magic files from a directory under Windows).
  • Libxml
  • Fixed bug #63389 (Missing context check on libxml_set_streams_context() causes memleak).
mbstring
  • Fixed bug #63447 (max_input_vars doesn't filter variables when mbstring.encoding_translation = On).
oci8
  • Fixed bug #63265 (Add ORA-00028 to the PHP_OCI_HANDLE_ERROR macro)
pcre
  • Fixed bug #63180 (Corruption of hash tables).
  • Fixed bug #63055 (Segfault in zend_gc with SF2 testsuite).
  • Fixed bug #63284 (Upgrade PCRE to 8.31).
pdo
  • Fixed bug #63235 (buffer overflow in use of SQLGetDiagRec).
pdo_pgsql
  • Fixed bug #62593 (Emulate prepares behave strangely with PARAM_BOOL).
phar
  • Fixed bug #63297 (Phar fails to write an openssl based signature).
streams
  • Fixed bug #63240 (stream_get_line() return contains delimiter string).
reflection
  • Fixed bug #63399 (ReflectionClass::getTraitAliases() incorrectly resolves traitnames).
PHP 5.4.8
Released 18 Oct, 2012
cli server
  • Implemented FR #63242 (Default error page in PHP built-in web server uses outdated html/css).
  • Changed response to unknown HTTP method to 501 according to RFC. .
  • Support HTTP PATCH method. Patch by Niklas Lindgren, Fixed issue GH-190.
core
  • Fixed bug #63219 (Segfault when aliasing trait method when autoloader throws excpetion).
  • Added optional second argument for assert() to specify custom message. Patch by Lonny Kapelushnik (lonny@lonnylot.com).
  • Support building PHP with the native client toolchain.
  • Added --offline option for tests.
  • Fixed bug #63162 (parse_url does not match password component).
  • Fixed bug #63111 (is_callable() lies for abstract static method).
  • Fixed bug #63093 (Segfault while load extension failed in zts-build).
  • Fixed bug #62976 (Notice: could not be converted to int when comparing some builtin classes).
  • Fixed bug #62955 (Only one directive is loaded from "Per Directory Values" Windows registry).
  • Fixed bug #62907 (Double free when use traits).
  • Fixed bug #61767 (Shutdown functions not called in certain error situation).
  • Fixed bug #60909 (custom error handler throwing Exception + fatal error = no shutdown function).
  • Fixed bug #60723 (error_log error time has changed to UTC ignoring default timezone).
curl
  • Fixed bug #62085 (file_get_contents a remote file by Curl wrapper will cause cpu Soaring).
date
  • Fixed bug #62896 ("DateTime->modify('+0 days')" modifies DateTime object)
  • Fixed bug #62561 (DateTime add 'P1D' adds 25 hours).
dom
  • Fixed bug #63015 (Incorrect arginfo for DOMErrorHandler).
fpm
  • Fixed bug #62954 (startup problems fpm / php-fpm).
  • Fixed bug #62886 (PHP-FPM may segfault/hang on startup).
  • Fixed bug #63085 (Systemd integration and daemonize).
  • Fixed bug #62947 (Unneccesary warnings on FPM).
  • Fixed bug #62887 (Only /status?plain&full gives "last request cpu").
  • Fixed bug #62216 (Add PID to php-fpm init.d script).
oci8
  • Fixed bug #60901 (Improve "tail" syntax for AIX installation)
openssl
  • Implemented FR #61421 (OpenSSL signature verification missing RMD160, SHA224, SHA256, SHA384, SHA512).
pdo
  • Fixed bug #63258 (seg fault with PDO and dblib using DBSETOPT(H->link, DBQUOTEDIDENT, 1)).
  • Fixed bug #63235 (buffer overflow in use of SQLGetDiagRec).
pdo firebird
  • Fixed bug #63214 (Large PDO Firebird Queries).
  • SOAP
  • Fixed bug #50997 (SOAP Error when trying to submit 2nd Element of a choice).
spl
  • Bug #62987 (Assigning to ArrayObject[null][something] overrides all undefined variables).
mbstring
  • Allow passing null as a default value to mb_substr() and mb_strcut(). Patch by Alexander Moskaliov via Fixed issue GH-133.
filter extension
  • Bug #49510: Boolean validation fails with FILTER_NULL_ON_FAILURE with empty string or false.
  • Sockets
  • Fixed bug #63000 (MCAST_JOIN_GROUP on OSX is broken, merge of PR 185 by Igor Wiedler).
PHP 5.4.7
Released 13 Sep, 2012
core
  • Fixed bug (segfault while build with zts and GOTO vm-kind).
  • Fixed bug #62844 (parse_url() does not recognize //). .
  • Fixed bug #62829 (stdint.h included on platform where HAVE_STDINT_H is not set).
  • Fixed bug #62763 (register_shutdown_function and extending class).
  • Fixed bug #62725 (Calling exit() in a shutdown function does not return the exit value).
  • Fixed bug #62744 (dangling pointers made by zend_disable_class).
  • Fixed bug #62716 (munmap() is called with the incorrect length).
  • Fixed bug #62358 (Segfault when using traits a lot).
  • Fixed bug #62328 (implementing __toString and a cast to string fails)
  • Fixed bug #51363 (Fatal error raised by var_export() not caught by error handler).
  • Fixed bug #40459 (Stat and Dir stream wrapper methods do not call constructor).
curl
  • Fixed bug #62912 (CURLINFO_PRIMARY_* AND CURLINFO_LOCAL_* not exposed).
  • Fixed bug #62839 (curl_copy_handle segfault with CURLOPT_FILE).
intl
  • Fixed Spoofchecker not being registered on ICU 49.1.
  • Fix bug #62933 (ext/intl compilation error on icu 3.4.1).
  • Fix bug #62915 (defective cloning in several intl classes).
installation
  • Fixed bug #62460 (php binaries installed as binary.dSYM).
pcre
  • Fixed bug #55856 (preg_replace should fail on trailing garbage).
pdo
  • Fixed bug #62685 (Wrong return datatype in PDO::inTransaction()).
reflection
  • Fixed bug #62892 (ReflectionClass::getTraitAliases crashes on importing trait methods as private).
  • Fixed bug #62715 (ReflectionParameter::isDefaultValueAvailable() wrong result).
session
  • Fixed bug (segfault due to retval is not initialized).
  • Fixed bug (segfault due to PS(mod_user_implemented) not be reseted when close handler call exit).
  • SOAP
  • Fixed bug #50997 (SOAP Error when trying to submit 2nd Element of a choice).
spl
  • Fixed bug #62904 (Crash when cloning an object which inherits SplFixedArray)
  • Implemented FR #62840 (Add sort flag to ArrayObject::ksort).
standard
  • Fixed bug #62836 (Seg fault or broken object references on unserialize()).
fpm
  • Merged PR 121 by minitux to add support for slow request counting on PHP FPM status page.
PHP 5.4.6
Released 16 Aug, 2012
cli server
  • Implemented FR #62700 (have the console output 'Listening on http://localhost:8000').
core
  • Fixed bug #62661 (Interactive php-cli crashes if include() is used in auto_prepend_file).
  • Fixed bug #62653: (unset($array[$float]) causes a crash).
  • Fixed bug #62565 (Crashes due non-initialized internal properties_table).
  • Fixed bug #60194 (--with-zend-multibyte and --enable-debug reports LEAK with run-test.php).
curl
  • Fixed bug #62499 (curl_setopt($ch, CURLOPT_COOKIEFILE, "") returns false).
datetime
  • Fixed Bug #62500 (Segfault in DateInterval class when extended).
fileinfo
  • Fixed bug #61964 (finfo_open with directory causes invalid free).
intl
  • Fixed bug #62564 (Extending MessageFormatter and adding property causes crash).
mysqlnd
  • Fixed bug #62594 (segfault in mysqlnd_res_meta::set_mode).
readline
  • Fixed bug #62612 (readline extension compilation fails with sapi/cli/cli.h: No such file).
reflection
  • Implemented FR #61602 (Allow access to name of constant used as default value).
simplexml
  • Implemented FR #55218 Get namespaces from current node.
spl
  • Fixed bug #62616 (ArrayIterator::count() from IteratorIterator instance gives Segmentation fault).
  • Fixed bug #61527 (ArrayIterator gives misleading notice on next() when moved to the end).
streams
  • Fixed bug #62597 (segfault in php_stream_wrapper_log_error with ZTS build).
zlib
  • Fixed bug #55544 (ob_gzhandler always conflicts with zlib.output_compression).
PHP 5.4.5
Released 19 Jul, 2012
core
  • Fixed bug #62443 (Crypt SHA256/512 Segfaults With Malformed Salt).
  • Fixed bug #62432 (ReflectionMethod random corrupt memory on high concurrent).
  • Fixed bug #62373 (serialize() generates wrong reference to the object).
  • Fixed bug #62357 (compile failure: (S) Arguments missing for built-in function __memcmp).
  • Fixed bug #61998 (Using traits with method aliases appears to result in crash during execution).
  • Fixed bug #51094 (parse_ini_file() with INI_SCANNER_RAW cuts a value that includes a semi-colon).
  • Fixed potential overflow in _php_stream_scandir (CVE-2012-2688).
exif
  • Fixed information leak in ext exif
fpm
  • Fixed bug #62205 (php-fpm segfaults (null passed to strstr)).
  • Fixed bug #62160 (Add process.priority to set nice(2) priorities).
  • Fixed bug #62153 (when using unix sockets, multiples FPM instances
  • Fixed bug #62033 (php-fpm exits with status 0 on some failures to start).
  • Fixed bug #61839 (Unable to cross-compile PHP with --enable-fpm).
  • Fixed bug #61835 (php-fpm is not allowed to run as root).
  • Fixed bug #61295 (php-fpm should not fail with commented 'user'
  • Fixed bug #61218 (FPM drops connection while receiving some binary values in FastCGI requests).
  • Fixed bug #61045 (fpm don't send error log to fastcgi clients). for non-root start).
  • Fixed bug #61026 (FPM pools can listen on the same address). can be launched without errors).
iconv
  • Fix bug #55042 (Erealloc in iconv.c unsafe).
intl
  • Fixed bug #62083 (grapheme_extract() memory leaks).
  • ResourceBundle constructor now accepts NULL for the first two arguments.
  • Fixed bug #62081 (IntlDateFormatter constructor leaks memory when called twice).
  • Fixed bug #62070 (Collator::getSortKey() returns garbage).
  • Fixed bug #62017 (datefmt_create with incorrectly encoded timezone leaks pattern).
  • Fixed bug #60785 (memory leak in IntlDateFormatter constructor).
json
  • Fixed bug #61359 (json_encode() calls too many reallocs).
libxml
  • Fixed bug #62266 (Custom extension segfaults during xmlParseFile with FPM SAPI).
phar
  • Fixed bug #62227 (Invalid phar stream path causes crash).
readline
  • Fixed bug #62186 (readline fails to compile - void function should not return a value).
reflection
  • Fixed bug #62384 (Attempting to invoke a Closure more than once causes segfault).
  • Fixed bug #62202 (ReflectionParameter::getDefaultValue() memory leaks with constant).
sockets
  • Fixed bug #62025 (__ss_family was changed on AIX 5.3).
spl
  • Fixed bug #62433 (Inconsistent behavior of RecursiveDirectoryIterator to dot files).
  • Fixed bug #62262 (RecursiveArrayIterator does not implement Countable).
xml writer
  • Fixed bug #62064 (memory leak in the XML Writer module).
zip
  • Upgraded libzip to 0.10.1
PHP 5.4.4
Released 14 Jun, 2012
com
  • Fixed bug #62146 com_dotnet cannot be built shared.
cli server
  • Implemented FR #61977 (Need CLI web-server support for files with .htm & svg extensions).
  • Improved performance while sending error page, this also fixed bug #61785 (Memory leak when access a non-exists file without router).
  • Fixed bug #61546 (functions related to current script failed when chdir() in cli sapi).
core
  • Fixed missing bound check in iptcparse().
  • Fixed CVE-2012-2143.
  • Fixed bug #62097 (fix for for bug #54547).
  • Fixed bug #62005 (unexpected behavior when incrementally assigning to a member of a null object).
  • Fixed bug #61978 (Object recursion not detected for classes that implement JsonSerializable).
  • Fixed bug #61991 (long overflow in realpath_cache_get()).
  • Fixed bug #61922 (ZTS build doesn't accept zend.script_encoding config).
  • Fixed bug #61827 (incorrect \e processing on Windows)
  • Fixed bug #61782 (__clone/__destruct do not match other methods when checking access controls).
  • Fixed bug #61764 ('I' unpacks n as signed if n > 2^31-1 on LP64).
  • Fixed bug #61761 ('Overriding' a private static method with a different signature causes crash).
  • Fixed bug #61730 (Segfault from array_walk modifying an array passed by reference).
  • Fixed bug #61728 (PHP crash when calling ob_start in request_shutdown phase).
  • Fixed bug #61713 (Logic error in charset detection for htmlentities).
  • Fixed bug #61660 (bin2hex(hex2bin($data)) != $data).
  • Fixed bug #61650 (ini parser crashes when using ${xxxx} ini variables (without apache2)).
  • Fixed bug #61605 (header_remove() does not remove all headers).
  • Fixed bug #54547 (wrong equality of string numbers).
  • Fixed bug #54197 ([PATH=] sections incompatibility with user_ini.filename set to null).
  • Changed php://fd to be available only for CLI.
curl
  • Fixed bug #61948 (CURLOPT_COOKIEFILE '' raises open_basedir restriction).
  • Fileinfo
  • Fixed bug #61812 (Uninitialised value used in libmagic).
  • Fixed bug #61566 failure caused by the posix lseek and read versions under windows in cdf_read().
  • Fixed bug #61565 where php_stream_open_wrapper_ex tries to open a directory descriptor under windows.
  • Intl
  • Fixed bug #62082 (Memory corruption in internal function get_icu_disp_value_src_php()).
libxml
  • Fixed bug #61617 (Libxml tests failed(ht is already destroyed)).
pdo
  • Fixed bug #61755 (A parsing bug in the prepared statements can lead to access violations).
phar
  • Fixed bug #61065 (Secunia SA44335, CVE-2012-2386).
pgsql
  • Added pg_escape_identifier/pg_escape_literal.
streams
  • Fixed bug #61961 (file_get_contents leaks when access empty file with maxlen set).
zlib
  • Fixed bug #61820 (using ob_gzhandler will complain about headers already sent when no compression).
  • Fixed bug #61443 (can't change zlib.output_compression on the fly).
  • Fixed bug #60761 (zlib.output_compression fails on refresh).
PHP 5.4.3
Released 08 May, 2012
PHP 5.4.2
Released 03 May, 2012
PHP 5.4.1
Released 26 Apr, 2012
cli server
  • Fixed bug #61461 (missing checks around malloc() calls).
  • Implemented FR #60850 (Built in web server does not set $_SERVER['SCRIPT_FILENAME'] when using router).
  • "Connection: close" instead of "Connection: closed"
core
  • Fixed crash in ZTS using same class in many threads.
  • Fixed bug #61374 (html_entity_decode tries to decode code points that don't exist in ISO-8859-1).
  • Fixed bug #61273 (call_user_func_array with more than 16333 arguments leaks / crashes).
  • Fixed bug #61225 (Incorrect lexing of 0b00*+<NUM>).
  • Fixed bug #61165 (Segfault - strip_tags()).
  • Fixed bug #61106 (Segfault when using header_register_callback).
  • Fixed bug #61087 (Memory leak in parse_ini_file when specifying invalid scanner mode).
  • Fixed bug #61072 (Memory leak when restoring an exception handler).
  • Fixed bug #61058 (array_fill leaks if start index is PHP_INT_MAX).
  • Fixed bug #61052 (Missing error check in trait 'insteadof' clause).
  • Fixed bug #61011 (Crash when an exception is thrown by __autoload accessing a static property).
  • Fixed bug #61000 (Exceeding max nesting level doesn't delete numerical vars).
  • Fixed bug #60978 (exit code incorrect).
  • Fixed bug #60911 (Confusing error message when extending traits).
  • Fixed bug #60801 (strpbrk() mishandles NUL byte).
  • Fixed bug #60717 (Order of traits in use statement can cause a fatal error).
  • Fixed bug #60573 (type hinting with "self" keyword causes weird errors).
  • Fixed bug #60569 (Nullbyte truncates Exception $message).
  • Fixed bug #52719 (array_walk_recursive crashes if third param of the function is by reference).
  • Improve performance of set_exception_handler while doing reset
fileinfo
  • Fix fileinfo test problems.
  • FPM
  • Fixed bug #61430 (Transposed memset() params in sapi/fpm/fpm/fpm_shm.c).
  • Ibase
  • Fixed bug #60947 (Segmentation fault while executing ibase_db_info).
  • Installation
  • Fixed bug #61172 (Add Apache 2.4 support).
intl
  • Fixed bug #61487 (Incorrent bounds checking in grapheme_strpos).
mbstring
  • MFH mb_ereg_replace_callback() for security enhancements.
  • mysqli
  • Fixed bug #61003 (mysql_stat() require a valid connection). .
  • mysqlnd
  • Fixed bug #61704 (Crash apache, phpinfo() threading issue).
  • Fixed bug #60948 (mysqlnd FTBFS when -Wformat-security is enabled).
  • PDO
  • Fixed bug #61292 (Segfault while calling a method on an overloaded PDO object).
  • PDO_mysql
  • Fixed bug #61207 (PDO::nextRowset() after a multi-statement query doesn't always work).
  • Fixed bug #61194 (PDO should export compression flag with myslqnd).
  • PDO_odbc
  • Fixed bug #61212 (PDO ODBC Segfaults on SQL_SUCESS_WITH_INFO).
  • Phar
  • Fixed bug #61184 (Phar::webPhar() generates headers with trailing NUL bytes).
readline
  • Fixed bug #61088 (Memory leak in readline_callback_handler_install).
reflection
  • Implemented FR #61602 (Allow access to the name of constant used as function/method parameter's default value).
  • Fixed bug #60968 (Late static binding doesn't work with ReflectionMethod::invokeArgs()).
  • Session
  • Fixed bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()).
  • SOAP
  • Fixed bug #61423 (gzip compression fails).
  • Fixed bug #60887 (SoapClient ignores user_agent option and sends no User-Agent header).
  • Fixed bug #60842, #51775 (Chunked response parsing error when chunksize length line is > 10 bytes).
  • Fixed bug #49853 (Soap Client stream context header option ignored).
spl
  • Fixed bug #61453 (SplObjectStorage does not identify objects correctly).
  • Fixed bug #61347 (inconsistent isset behavior of Arrayobject).
standard
  • Fixed memory leak in substr_replace.
  • Make max_file_uploads ini directive settable outside of php.ini
  • Fixed bug #61409 (Bad formatting on phpinfo()).
  • Fixed bug #60222 (time_nanosleep() does validate input params).
  • Fixed bug #60106 (stream_socket_server silently truncates long unix socket paths).
xmlrpc
  • Fixed bug #61264 (xmlrpc_parse_method_descriptions leaks temporary variable).
  • Fixed bug #61097 (Memory leak in xmlrpc functions copying zvals).
zlib
  • Fixed bug #61306 (initialization of global inappropriate for ZTS).
  • Fixed bug #61287 (A particular string fails to decompress).
  • Fixed bug #61139 (gzopen leaks when specifying invalid mode).
PHP 5.4.0
Released 01 Mar, 2012
installation
  • autoconf 2.59+ is now supported (and required) for generating the configure script with ./buildconf. Autoconf 2.60+ is desirable otherwise the configure help order may be incorrect.
removed legacy features
  • break/continue $var syntax.
  • Safe mode and all related php.ini options.
  • register_globals and register_long_arrays php.ini options.
  • import_request_variables().
  • allow_call_time_pass_reference.
  • define_syslog_variables php.ini option and its associated function.
  • highlight.bg php.ini option.
  • safe_mode, safe_mode_gid, safe_mode_include_dir, safe_mode_exec_dir, safe_mode_allowed_env_vars and safe_mode_protected_env_vars php.ini options.
  • zend.ze1_compatibility_mode php.ini option.
  • Session bug compatibility mode (session.bug_compat_42 and session.bug_compat_warn php.ini options).
  • session_is_registered(), session_register() and session_unregister() functions.
  • y2k_compliance php.ini option.
  • magic_quotes_gpc, magic_quotes_runtime and magic_quotes_sybase php.ini options. get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false, set_magic_quotes_runtime raises an E_CORE_ERROR.
  • Removed support for putenv("TZ=..") for setting the timezone.
  • Removed the timezone guessing algorithm in case the timezone isn't set with date.timezone or date_default_timezone_set(). Instead of a guessed timezone, "UTC" is now used instead.
moved extensions to pecl
  • ext/sqlite. (Note: the ext/sqlite3 and ext/pdo_sqlite extensions are not affected)
general improvements
  • Added short array syntax support ([1,2,3]), see UPGRADING guide for full details.
  • Added binary number format (0b001010).
  • Added support for Class::{expr}() syntax
  • Added multibyte support by default. Previously PHP had to be compiled with --enable-zend-multibyte. Now it can be enabled or disabled through the zend.multibyte directive in php.ini.
  • Removed compile time dependency from ext/mbstring
  • Added support for Traits.
  • Added closure $this support back.
  • Added array dereferencing support.
  • Added callable typehint.
  • Added indirect method call through array. FR #47160.
  • Added DTrace support.
  • Added class member access on instantiation (e.g. (new foo)->bar()) support.
  • <?= is now always available regardless of the short_open_tag setting.
  • Implemented Zend Signal Handling (configurable option --enable-zend-signals, off by default).
  • Improved output layer, see README.NEW-OUTPUT-API for internals.
  • Improved UNIX build system to allow building multiple PHP binary SAPIs and one SAPI module the same time. FR #53271, FR #52419.
  • Implemented closure rebinding as parameter to bindTo.
  • Improved the warning message of incompatible arguments.
  • Improved ternary operator performance when returning arrays.
  • Changed error handlers to only generate docref links when the docref_root php.ini setting is not empty.
  • Changed silent conversion of array to string to produce a notice.
  • Changed default encoding from ISO-8859-1 to UTF-8 when not specified in htmlspecialchars and htmlentities.
  • Changed casting of null/''/false into an Object when adding a property from E_STRICT into a warning.
  • Changed E_ALL to include E_STRICT.
  • Disabled Windows CRT warning by default, can be enabled again using the php.ini directive windows_show_crt_warnings.
  • Fixed bug #55378: Binary number literal returns float number though its value is small enough.
improved zend engine memory usage
  • Improved parse error messages.
  • Replaced zend_function.pass_rest_by_reference by ZEND_ACC_PASS_REST_BY_REFERENCE in zend_function.fn_flags.
  • Replaced zend_function.return_reference by ZEND_ACC_RETURN_REFERENCE in zend_function.fn_flags.
  • Removed zend_arg_info.required_num_args as it was only needed for internal functions. Now the first arg_info for internal functions is represented by the zend_internal_function_info structure.
  • Moved zend_op_array.size, size_var, size_literal, current_brk_cont, backpatch_count into CG(context) as they are used only during compilation.
  • Moved zend_op_array.start_op into EG(start_op) as it's used only for 'interactive' execution of a single top-level op-array.
  • Replaced zend_op_array.done_pass_two by ZEND_ACC_DONE_PASS_TWO in zend_op_array.fn_flags.
  • op_array.vars array is trimmed during pass_two.
  • Replaced zend_class_entry.constants_updated by ZEND_ACC_CONSTANTS_UPDATED in zend_class_entry.ce_flags.
  • Reduced the size of zend_class_entry by sharing the same memory space by different information for internal and user classes. See zend_class_entry.info union.
  • Reduced size of temp_variable.
improved zend engine - performance tweaks and optimizations
  • Inlined most probable code-paths for arithmetic operations directly into executor.
  • Eliminated unnecessary iterations during request startup/shutdown.
  • Changed $GLOBALS into a JIT autoglobal, so it's initialized only if used.
  • Improved performance of @ operator.
  • Simplified string offset reading. Given $str="abc" then $str[1][0] is now a legal construct.
  • Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties.
  • Added concept of interned strings. All strings constants known at compile time are allocated in a single copy and never changed.
  • ZEND_RECV now always has IS_CV as its result.
  • ZEND_CATCH now has to be used only with constant class names.
  • ZEND_FETCH_DIM_? may fetch array and dimension operands in different order.
  • Simplified ZEND_FETCH_*_R operations. They can't be used with the EXT_TYPE_UNUSED flag any more. This is a very rare and useless case. ZEND_FREE might be required after them instead.
  • Split ZEND_RETURN into two new instructions ZEND_RETURN and ZEND_RETURN_BY_REF.
  • Optimized access to global constants using values with pre-calculated hash_values from the literals table.
  • Optimized access to static properties using executor specialization. A constant class name may be used as a direct operand of ZEND_FETCH_* instruction without previous ZEND_FETCH_CLASS.
  • zend_stack and zend_ptr_stack allocation is delayed until actual usage.
other improvements to zend engine
  • Added an optimization which saves memory and emalloc/efree calls for empty HashTables.
  • Added ability to reset user opcode handlers .
  • Changed the structure of op_array.opcodes. The constant values are moved from opcode operands into a separate literal table.
  • Fixed (disabled) inline-caching for ZEND_OVERLOADED_FUNCTION methods.
improved core functions
  • Enforce an extended class' __construct arguments to match the abstract constructor in the base class.
  • Disallow reusing superglobal names as parameter names.
  • Added optional argument to debug_backtrace() and debug_print_backtrace() to limit the amount of stack frames returned.
  • Added hex2bin() function.
  • number_format() no longer truncates multibyte decimal points and thousand separators to the first byte. FR #53457.
  • Added support for object references in recursive serialize() calls. FR #36424.
  • Added support for SORT_NATURAL and SORT_FLAG_CASE in array sort functions (sort, rsort, ksort, krsort, asort, arsort and array_multisort). FR#55158
  • Added stream metadata API support and stream_metadata() stream class handler.
  • User wrappers can now define a stream_truncate() method that responds to truncation, e.g. through ftruncate(). FR #53888.
  • Improved unserialize() performance.
  • Changed array_combine() to return empty array instead of FALSE when both parameter arrays are empty. FR #34857.
  • Fixed bug #61095 (Incorect lexing of 0x00*+<NUM>).
  • Fixed bug #60965 (Buffer overflow on htmlspecialchars/entities with $double=false).
  • Fixed bug #60895 (Possible invalid handler usage in windows random functions).
  • Fixed bug #60879 (unserialize() Does not invoke __wakeup() on object).
  • Fixed bug #60825 (Segfault when running symfony 2 tests).
  • Fixed bug #60627 .
  • Fixed bug #60613 (Segmentation fault with $cls->{expr}() syntax).
  • Fixed bug #60611 (Segmentation fault with Cls::{expr}() syntax).
  • Fixed bug #60558 (Invalid read and writes).
  • Fixed bug #60444 (Segmentation fault with include & class extending). .
  • Fixed bug #60362 (non-existent sub-sub keys should not have values).
  • Fixed bug #60350 (No string escape code for ESC (ascii 27), normally \e).
  • Fixed bug #60321 (ob_get_status(true) no longer returns an array when buffer is empty).
  • Fixed bug #60282 (Segfault when using ob_gzhandler() with open buffers).
  • Fixed bug #60240 (invalid read/writes when unserializing specially crafted strings).
  • Fixed bug #60227 (header() cannot detect the multi-line header with CR(0x0D)).
  • Fixed bug #60174 (Notice when array in method prototype error).
  • Fixed bug #60169 (Conjunction of ternary and list crashes PHP).
  • Fixed bug #60038 (SIGALRM cause segfault in php_error_cb). (Laruence)
  • Fixed bug #55871 (Interruption in substr_replace()).
  • Fixed bug #55801 (Behavior of unserialize has changed).
  • Fixed bug #55758 (Digest Authenticate missed in 5.4) .
  • Fixed bug #55748 (multiple NULL Pointer Dereference with zend_strndup()) (CVE-2011-4153).
  • Fixed bug #55124 (recursive mkdir fails with current (dot) directory in path).
  • Fixed bug #55084 (Function registered by header_register_callback is called only once per process).
  • Implement FR #54514 (Get php binary path during script execution).
  • Fixed bug #52211 (iconv() returns part of string on error).
  • Fixed bug #51860 (Include fails with toplevel symlink to /).
improved generic sapi support
  • Added $_SERVER['REQUEST_TIME_FLOAT'] to include microsecond precision.
  • Added header_register_callback() which is invoked immediately prior to the sending of headers and after default headers have been added.
  • Added http_response_code() function. FR #52555.
  • Fixed bug #55500 (Corrupted $_FILES indices lead to security concern). (CVE-2012-1172).
  • Fixed bug #54374 (Insufficient validating of upload name leading to corrupted $_FILES indices). (CVE-2012-1172).
improved cli sapi
  • Added built-in web server that is intended for testing purpose.
  • Added command line option --rz <name> which shows information of the named Zend extension.
  • Interactive readline shell improvements:
  • Added "cli.pager" php.ini setting to set a pager for output.
  • Added "cli.prompt" php.ini setting to configure the shell prompt.
  • Added shortcut #inisetting=value to change php.ini settings at run-time.
  • Changed shell not to terminate on fatal errors.
  • Interactive shell works with shared readline extension. FR #53878.
improved cgi/fastcgi sapi
  • Added apache compatible functions: apache_child_terminate(), getallheaders(), apache_request_headers() and apache_response_headers()
  • Improved performance of FastCGI request parsing.
  • Fixed reinitialization of SAPI callbacks after php_module_startup().
improved php-fpm sapi
  • Removed EXPERIMENTAL flag.
  • Fixed bug #60659 (FPM does not clear auth_user on request accept).
improved litespeed sapi
  • Fixed bug #55769 (Make Fails with "Missing Separator" error).
improved date extension
  • Added the + modifier to parseFromFormat to allow trailing text in the string to parse without throwing an error.
improved dba extension
  • Added Tokyo Cabinet abstract DB support.
  • Added Berkeley DB 5 support.
improved dom extension
  • Added the ability to pass options to loadHTML
improved filesystem functions
  • scandir() now accepts SCANDIR_SORT_NONE as a possible sorting_order value. FR #53407.
improved hash extension
  • Added Jenkins's one-at-a-time hash support.
  • Added FNV-1 hash support.
  • Made Adler32 algorithm faster. FR #53213.
  • Removed Salsa10/Salsa20, which are actually stream ciphers
  • Fixed bug #60221 (Tiger hash output byte order)
improved intl extension
  • Added Spoofchecker class, allows checking for visibly confusable characters and other security issues.
  • Added Transliterator class, allowing transliteration of strings.
  • Added support for UTS #46.
  • Fixed build on Fedora 15 / Ubuntu 11.
  • Fixed bug #55562 (grapheme_substr() returns false on big length).
improved json extension
  • Added new json_encode() option JSON_UNESCAPED_UNICODE. FR #53946.
  • Added JsonSerializable interface.
  • Added JSON_BIGINT_AS_STRING, extended json_decode() sig with $options.
  • Added support for JSON_NUMERIC_CHECK option in json_encode() that converts numeric strings to integers.
  • Added new json_encode() option JSON_UNESCAPED_SLASHES. FR #49366.
  • Added new json_encode() option JSON_PRETTY_PRINT. FR #44331.
improved ldap extension
  • Added paged results support. FR #42060.
improved mbstring extension
  • Added Shift_JIS/UTF-8 Emoji (pictograms) support.
  • Added JIS X0213:2004 (Shift_JIS-2004, EUC-JP-2004, ISO-2022-JP-2004) support.
  • Ill-formed UTF-8 check for security enhancements.
  • Added MacJapanese (Shift_JIS) and gb18030 encoding support.
  • Added encode/decode in hex format to mb_[en|de]code_numericentity().
  • Added user JIS X0213:2004 (Shift_JIS-2004, EUC-JP-2004, ISO-2022-JP-2004) support.
  • Added the user defined area for CP936 and CP950 .
  • Fixed bug #60306 (Characters lost while converting from cp936 to utf8).
improved mysql extensions
  • MySQL: Deprecated mysql_list_dbs(). FR #50667.
  • mysqlnd: Added named pipes support. FR #48082.
  • MySQLi: Added iterator support in MySQLi. mysqli_result implements Traversable.
  • PDO_mysql: Removed support for linking with MySQL client libraries older than 4.1.
  • ext/mysql, mysqli and pdo_mysql now use mysqlnd by default.
  • Fixed bug #55473 (mysql_pconnect leaks file descriptors on reconnect).
  • Fixed bug #55653 (PS crash with libmysql when binding same variable as param and out).
improved openssl extension
  • Added AES support. FR #48632.
  • Added no padding option to openssl_encrypt()/openssl_decrypt().
  • Use php's implementation for Windows Crypto API in openssl_random_pseudo_bytes.
  • On error in openssl_random_pseudo_bytes() made sure we set strong result to false.
  • Fixed possible attack in SSL sockets with SSL 3.0 / TLS 1.0. CVE-2011-3389.
  • Fixed bug #61124 (Crash when decoding an invalid base64 encoded string).
improved pdo
  • Fixed PDO objects binary incompatibility.
pdo dblib driver
  • Added nextRowset support.
  • Fixed bug #50755 .
improved postgresql extension
  • Added support for "extra" parameter for PGNotify().
improved pcre extension
  • Changed third parameter of preg_match_all() to optional. FR #53238.
improved readline extension
  • Fixed bug #54450 (Enable callback support when built against libedit).
improved reflection extension
  • Added ReflectionClass::newInstanceWithoutConstructor() to create a new instance of a class without invoking its constructor. FR #55490.
  • Added ReflectionExtension::isTemporary() and ReflectionExtension::isPersistent() methods.
  • Added ReflectionZendExtension class.
  • Added ReflectionClass::isCloneable().
improved session extension
  • Expose session status via new function, session_status (FR #52982)
  • Added support for object-oriented session handlers.
  • Added support for storing upload progress feedback in session data.
  • Changed session.entropy_file to default to /dev/urandom or /dev/arandom if either is present at compile time.
  • Fixed bug #60860 (session.save_handler=user without defined function core dumps).
  • Implement FR #60551 (session_set_save_handler should support a core's session handler interface).
  • Fixed bug #60640 (invalid return values).
improved snmp extension (boris lytochkin)
  • Added OO API. FR #53594 .
  • Sanitized return values of existing functions. Now it returns FALSE on failure.
  • Allow ~infinite OIDs in GET/GETNEXT/SET queries. Autochunk them to max_oids upon request.
  • Introducing unit tests for extension with ~full coverage.
  • IPv6 support.
  • Way of representing OID value can now be changed when SNMP_VALUE_OBJECT is used for value output mode. Use or'ed SNMP_VALUE_LIBRARY(default if not specified) or SNMP_VALUE_PLAIN.
  • Fixed bug #60749 (SNMP module should not strip non-standard SNMP port from hostname).
  • Fixed bug #60585 (php build fails with USE flag snmp when IPv6 support is disabled).
  • Fixed bug #53862
  • Fixed bug #46065 persists between requests)
  • Fixed bug #45893
  • Fixed bug #44193
improved soap extension
  • Added new SoapClient option "keep_alive". FR #60329.
  • Fixed basic HTTP authentication for WSDL sub requests.
improved spl extension
  • Added RegexIterator::getRegex() method.
  • Added SplObjectStorage::getHash() hook.
  • Added CallbackFilterIterator and RecursiveCallbackFilterIterator.
  • Added missing class_uses(..) as pointed out by #55266
  • Immediately reject wrong usages of directories under Spl(Temp)FileObject and friends.
  • FilesystemIterator, GlobIterator and (Recursive)DirectoryIterator now use the default stream context.
  • Fixed bug #60201 (SplFileObject::setCsvControl does not expose third argument via Reflection).
  • Fixed bug #55287 (spl_classes() not includes CallbackFilter classes)
improved sysvshm extension
  • Fixed bug #55750 (memory copy issue in sysvshm extension).
improved tidy extension
  • Fixed bug #54682 (Tidy::diagnose() NULL pointer dereference).
improved tokenizer extension
  • Fixed bug #54089 (token_get_all with regards to __halt_compiler is not binary safe).
improved xsl extension
  • Added XsltProcessor::setSecurityPrefs($options) and getSecurityPrefs() to define forbidden operations within XSLT stylesheets, default is not to enable write operations from XSLT. Bug #54446
  • XSL doesn't stop transformation anymore, if a PHP function can't be called
improved zlib extension
  • Re-implemented non-file related functionality.
  • Fixed bug #55544 (ob_gzhandler always conflicts with zlib.output_compression).
To Top