,

PHP 5.1.4正式釋出

Posted by

–

PHP 5.1.4正式釋出

分享是一種日常的美好~

距離上次PHP 5.1.2釋出睽違了四個月,改善了PHP 5的相容度、穩定性與安全性問題,PHP官方正式釋出了PHP 5.1.3,但沒過幾天,又再推出PHP 5.1.4,PHP組織鼓勵所有PHP網站用戶更新。

下面列出本次的更新內容與修正列表,由其長度可看出開發社群這陣子的努力:

Version 5.1.4

* Added "capture_peer_cert" and "capture_peer_cert_chain" context options for SSL streams. (Wez).
* Added PDO::PARAM_EVT_* family of constants. (Sara)
* Fixed possible crash in highlight_string(). (Dmitry)
* Fixed bug (FastCGI now longer works with isapi_fcgi.dll). (Dmitry)
* Fixed bug (cloning Dom Documents or Nodes does not work). (Rob)
* Fixed bug (problems with $_POST array). (Dmitry)
* Fixed bug (bad error reporting for pdo_odbc exec UPDATE). (Wez).
* Fixed bug (crash when pdo_odbc prepare fails). (Wez).

Version 5.1.3

* Updated bundled PCRE library to version 6.6. (Andrei)
* Moved extensions to PECL:
o ext/msession (Derick)
* Reimplemented FastCGI interface. (Dmitry)
* Improved SPL: (Marcus)
o Fixed issues with not/double calling of constructors of SPL iterators.
o Fixed issues with info-class/file-class in SPL directory handling classes.
o Fixed ArrayIterator::seek().
o Added SimpleXMLIterator::count().
o Dropped erroneous RecursiveDirectoryIterator::getSubPathInfo().
* Improved SimpleXML: (Marcus, Rob)
o Added SimpleXMLElement::getName() to retrieve name of element.
o Added ability to create elements on the fly.
o Added addChild() method for element creation supporting namespaces.
o Added addAttribute() method for attribute creation supporting namespaces.
o Added ability to delete specific elements and attributes by offset.
* Improved Reflection API: (Marcus)
o Added ReflectionClass::newInstanceArgs($args).
o Added ability to analyze extension dependency.
o Added ReflectionFunction::isDeprecated() and constant IS_DEPRECATED.
o Added ReflectionParameter::getDeclaringClass().
o Changed reflection constants to be prefixed with IS_. (Johannes)
* Improved cURL extension: (Ilia)
o Added curl_setopt_array() function that allows setting of multiple options via an associated array.
o Added the ability to retrieve the request message sent to the server.
* Improved GD extension: (Pierre)
o Added a weak/tolerant mode to the JPEG loader.
o Added filtering mode option to imagepng() to allow reducing file size.
o Fixed imagecolorallocate() and imagecolorallocatelapha() to return FALSE on error.
* Changed get_headers() to retrieve headers also from non-200 responses. (Ilia)
* Changed get_headers() to use the default context. (Ilia)
* Changed SOAP extension to cache WSDL structure in memory and thus speed up SoapClient/SoapServer construction. (Andrei, Dmitry)
* Added lchown() and lchgrp() to change user/group ownership of symlinks. (Derick)
* Added support for exif date format in strtotime(). (Derick)
* Added a check for special characters in the session name. (Ilia)
* Added "consumed" stream filter. (Marcus)
* Added new mysqli constants for BIT and NEW_DECIMAL field types: MYSQLI_TYPE_NEWDECIMAL and MYSQLI_TYPE_BIT. FR . (Georg)
* Added imap_savebody() that allows message body to be written to a file. (Mike)
* Added overflow checks to wordwrap() function. (Ilia)
* Added support for BINARY_DOUBLE and BINARY_FLOAT to PDO_OCI and OCI8 (also fixes bug ). (Tony)
* Eliminated run-time constant fetching for TRUE, FALSE and NULL. (Dmitry)
* Removed the E_STRICT deprecation notice from "var". (Ilia)
* Fixed reading stream filters never notified about EOF. (Mike)
* Fixed tempnam() 2nd parameter to be checked against path components. (Ilia)
* Fixed a bug that would not fill in the fifth argument to preg_replace() properly, if the variable was not declared previously. (Andrei)
* Fixed safe_mode check for source argument of the copy() function. (Ilia)
* Fixed mysqli bigint conversion under Windows (Georg)
* Fixed XSS inside phpinfo() with long inputs. (Ilia)
* Fixed Apache2 SAPIs header handler modifying header strings. (Mike)
* Fixed 'auto_globals_jit' to work together with 'register_argc_argv'. (Dmitry)
* Fixed offset/length parameter validation in substr_compare() function. (Ilia)
* Fixed debug_zval_dump() to support private and protected members. (Dmitry)
* Fixed SoapFault::getMessage(). (Dmitry)
* Fixed issue with iconv_mime_decode where the "encoding" would only allow upper case specifiers. (Derick)
* Fixed tiger hash algorithm generating wrong results on big endian platforms. (Mike)
* Fixed crash with DOMImplementation::createDocumentType("name:"). (Mike)
* Fixed bug (Serving binary content/images fails with "comm with server aborted" FastCGI err). (Dmitry)
* Fixed bug (cc may complain about non-constant initializers in hash_adler.c). (Mike)
* Fixed bug (chmod takes off sticky bit when safe_mode is On). (Tony)
* Fixed bug (PDO segfaults when throwing exception from the fetch handler). (Tony)
* Fixed bug (wddx does not build as a shared extension). (jdolecek at NetBSD dot org, Ilia)
* Fixed bug (fread behavior changes after calling stream_wrapper_register). (Wez)
* Fixed bug (__autoload tries to load callback'ed self and parent). (Dmitry)
* Fixed bug (libmbfl headers not installed). (Jani)
* Fixed bug (Frequent crashes in SOAP extension with new WSDL caching code in multithread WS). (Andrei, Dmitry)
* Fixed bug (compile failure on ARM architecture). (Tony)
* Fixed bug (curl_exec() doesn't zero-terminate binary strings). (Tony)
* Fixed bug (Type of retval of Countable::count() is not checked). (Johannes)
* Fixed bug (oci_bind_by_name() doesn't support RAW and LONG RAW fields). (Tony)
* Fixed bug (xmlrpc_decode() may produce arrays with numeric strings, which are unaccessible). (Tony)
* Fixed bug (incorrect reference counting for persistent OCI8 connections). (Tony)
* Fixed bug (SoapClient Error Fetching http headers). (Dmitry)
* Fixed bug (html_errors with internal classes produces wrong links). (Tony)
* Fixed bug (foreach breaks static scope). (Dmitry)
* Fixed bug (Fixed check for special chars for http redirects). (Ilia)
* Fixed bug (strtotime fails before 13:00:00 with some time zones identifiers). (Derick)
* Fixed bug (Have to quote literals in INI when concatenating with vars). (Dmitry)
* Fixed bug (mktime freezes on long numbers). (Derick)
* Fixed bug (SplFileObject->fgets() ignores max_length). (Tony)
* Fixed bug (serialize() does not handle recursion). (Ilia)
* Fixed bug (strncmp & strncasecmp do not return false on negative string length). (Tony)
* Fixed bug (ArrayIterator does not clone itself). (Marcus)
* Fixed bug (OCILob->read() doesn't move internal pointer when reading 0's). (Tony)
* Fixed bug (wsdl default value overrides value in soap request). (Dmitry)
* Fixed bug (__set() leaks in classes extending internal ones). (Tony, Dmitry)
* Fixed bug (User filters can leak buckets in some situations). (Ilia)
* Fixed bug (error messages are printed even though an exception has been thrown). (Tony)
* Fixed bug (is_*() functions do not account for open_basedir). (Ilia)
* Fixed bug (session_destroy() fails after call to session_regenerate_id(true)). (Ilia)
* Fixed bug (memory leak in output buffering when using chunked output). (Tony)
* Fixed bug (DOMElement crashes when calling __construct when cloning). (Tony)
* Fixed bug (Added support for partial content fetching to the HTTP streams wrapper). (Ilia)
* Fixed bug (Documentation and code discrepancies for NULL data in oci_fetch_*() functions). (Tony)
* Fixed bug (Exceptions thrown in ArrayObject::offsetGet cause segfault). (Tony)
* Fixed bug (Privileged connection with an Oracle password file fails). (Tony)
* Fixed bug (__FILE__ behavior changed). (Dmitry)
* Fixed bug (syslog ident becomes garbage between requests). (Tony)
* Fixed bug (mysqli_set_charset() crash with a non-open connection). (Ilia)
* Fixed bug (DOMDocument::removeChild corrupts node). (Rob)
* Fixed bug (SOAP: 'Error Fetching http body' when using HTTP Proxy). (Dmitry)
* Fixed bug (No error message when load data local file isn't found). (Georg)
* Fixed bug (In a class extending XMLReader array properties are not writable). (Tony)
* Fixed bug (segfault in pdo_pgsql bindValue() when no parameters are defined). (Tony)
* Fixed bug (The SoapServer is not able to send a header that it didn't receive). (Dmitry)
* Fixed bug (Transparency is lost when using imagecreatetruecolor). (Pierre)
* Fixed bug (Removed arbitrary limit on the length of syslog messages). (Ilia)
* Fixed bug (http_build_query generates invalid URIs due to use of square brackets). (Mike)
* Fixed bug (strtotime() returns false when 2nd argument < 1). (Derick)
* Fixed bug (SoapServer::handle() exits on SOAP faults). (Dmitry)
* Fixed bug (pg_trace() does not work). (iakio at mono-space dot net)
* Fixed bug (Segfault when using Soap). (Dmitry)
* Fixed bug (assignment to SimpleXML object attribute changes argument type to string). (Tony)
* Fixed bug (pg_query_params() changes arguments type to string). (Tony)
* Fixed bug (DATE_W3C format constant incorrect). (Derick)
* Fixed bug (SOAP: Incorrect complex type instantiation with hierarchies). (Dmitry)
* Fixed bug (Added PDO::MYSQL_ATTR_DIRECT_QUERY constant that should be set when executing internal queries like "show master status" via MySQL). (Ilia)
* Fixed bug (memory_limit setting on win32 has no effect). (Dmitry)
* Fixed bug (comment will be outputted in last line). (Dmitry)
* Fixed bug (strtotime() fails to parse date strings with tabs). (Ilia, Derick)
* Fixed bug (Incorrect adding PHPSESSID to links, which contains rn). (Ilia)
* Fixed bug (sleep() accepts negative values). (Ilia)
* Fixed bug (DBA problem with Berkeley DB4). (Marcus)
* Fixed bug (Improper resolution of declaring class name of an inherited property). (Ilia)
* Fixed bug (segfault when access result->num_rows after calling result->close()). (Ilia,Tony)
* Fixed bug (oci_execute() no longer supports OCI_DESCRIBE_ONLY). (Tony)
* Fixed bug (Custom 5xx error does not return correct HTTP response error code). (Tony)
* Fixed bug (strtotime() fails to parse dates in dd-mm-yyyy format). (Derick)
* Fixed bug (ext/soap crashes when throwing exception and session persistence). (David)
* Fixed bug (PDO/PgSQL's getColumnMeta() crashes). (Derick)
* Fixed bug (splFileObject::fwrite() doesn't write when no data length specified). (Tony)
* Fixed bug (parse_url() does not parse numeric paths properly). (Ilia)
* Fixed bug (PDO/MySQL problem loading BLOB over 1MB). (Ilia)
* Fixed bug (ReflectionProperty fails to return correct visibility). (Ilia)
* Fixed bug (Added missing documentation about realpath cache INI settings). (Ilia)
* Fixed bug (ReflectionProperty::getDocComment() does not reflect extended class commentary). (Ilia)
* Fixed bug (crc32() differ on 32-bit and 64-bit platforms) (anight@eyelinkmedia dot com, Pierre)
* Fixed bug (foreach on error_zval produces segfault). (Dmitry)
* Fixed bug (typo in SplFileObject::flock() parameter name). (Tony)
* Fixed bug (Segfault with SplFileInfo conversion). (Marcus)
* Fixed bug (SOAPClient Compression Broken). (Dmitry)
* Fixed bug (Object destructors called even after fatal errors). (Dmitry)
* Fixed bug (SplFileObject::getPath() may lead to segfault). (Tony)
* Fixed bug (PHP causes ORA-07445 core dump in Oracle server 9.2.x). (Tony)
* Fixed bug (Possible memory corruption in stream_select()). (Tony)
* Fixed bug (ocicolumnname returns false before a successful fetch). (Tony)
* Fixed bug (Inconsistent handling when passing potential arrays). (Dmitry)
* Fixed bug (date(DATE_ATOM) gives wrong results). (Derick, Hannes Magnusson)
* Fixed bug (errorInfo in PDOException is always NULL). (Ilia)
* Fixed bug (symbol namespace conflicts using bundled gd). (Jakub Moc)
* Fixed bug (Memory leaks on duplicate cookies). (Dmitry)
* Fixed bug (str_rot13() crash on non-string parameter). (Pierre)
* Fixed bug (PDO_PGSQL – PDO::exec() does not return number of rows affected by the operation). (Ilia)
* Fixed bug (SIGTERM is not handled correctly when running as a FastCGI server). (Dmitry)
* Fixed bug (problems with curl+ssl and pgsql+ssl in same PHP). (Mike)
* Fixed bug (unpack("H*hex", $data) is adding an extra character to the end of the string). (Ilia)
* Fixed bug (DirectoryIterator constructor failed to detect empty directory names). (Ilia)
* Fixed bug (Reading records of unsupported type causes segfault). (Tony)
* Fixed bug (oci_result() returns garbage after oci_fetch() failed). (Tony)
* Fixed bug (SoapClient waits for responses on one-way operations). (Dmitry)
* Fixed bug (Engine Crash related with 'clone'). (Dmitry)
* Fixed bug (possible OCI8 crash in multi-threaded environment). (Tony)
* Fixed bug (parse_ini_file() miscounts lines in multi-line values). (Ilia)
* Fixed bug (ext/hash compile failure on Mac OSX). (Tony)
* Fixed bug (heredoc adds extra line number). (Dmitry)
* Fixed bug (realpath cache memleaks). (Dmitry, Nuno)
* Fixed bug (Strict errormsg wrong for call_user_func() and the likes). (Marcus)
* Fixed bug (Segfault when re-creating and re-executing statements with bound parameters). (Tony)
* Fixed bug (Problem with $this in __destruct()). (Dmitry)
* Fixed bug (recursive mkdir() does not work with relative path like "foo/bar"). (Tony)
* Fixed bug (SplFileInfo::getPathname() returns unix style filenames in win32). (Marcus)
* Fixed bug (Unknown persistent list entry type in module shutdown). (Dmitry)
* Fixed bug (Fatal com_exception casting object). (Rob)
* Fixed bug (stream_select() should warning when tv_sec is negative). (Ilia)
* Fixed bug (SimpleXML causes memory read error zend engine). (Marcus)
* Fixed bug (empty array onto COM object blows up). (Rob)
* Fixed bug (sqlite_fetch_column_types() locks the database forever). (Ilia)

分享是一種日常的美好~

延伸閱讀

新網站新氣象,會想到緞帶教堂的美好
一直很喜歡的緞帶教堂 Ribbon Chapel

歡迎追蹤我們

2006 年 5 月
一 二 三 四 五 六 日
1234567
891011121314
15161718192021
22232425262728
293031