5.2.1RC2 out!
だそうで(1・2・3・4・5)。
5.2.1RC1から5.2.1RC2までの修正状況は以下の通り。
この件は、変わらず(常に有効)。変な火種とならなければ良いのですが。
他にも「Added internal heap protection」とか「safe unlinking」とか「canary protection (debug build only)」とか「random generation of cookies and canaries」とか、ぱっと見で重要そうな変更が沢山ありますね。
--- NEWS 2006/12/15 01:21:36 1.2027.2.547.2.430 +++ NEWS 2007/01/04 23:52:29 1.2027.2.547.2.472 @@ -1,10 +1,77 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| +04 Jan 2007, PHP 5.2.1RC2 +- Small optimization of the date() function (Matt,Ilia) +- Removed dependency from SHELL32.DLL. (Dmitry) +- Added function stream_socket_shutdown(). It is a wraper for system shutdown() + function, that shut downs part of a full-duplex connection. (Dmitry) +- Added internal heap protection (Dmitry) + . memory-limit is always enabled (--enable-memory-limit removed) + . default value if memory-limit is set to 128M + . safe unlinking + . cookies + . canary protection (debug build only) + . random generation of cookies and canaries +- Added forward support for 'b' prefix in front of string literals. (Andrei) +- Fixed incorrect function names on FreeBSD where inet_pton() was named + __inet_pton() and inet_ntop() was named __inet_ntop(). (Hannes) +- Fixed the validate email filter so that the letter "v" can also be used in + the user part of the email address. (Derick) +- Fixed bug #40012 (php_date.c doesnt compile on Netware). (gk at gknw dot de, + Derick) +- Fixed bug #40009 (http_build_query(array()) returns NULL). (Ilia) +- Fixed bug #39984 (redirect response code in header() could be ignored in + CGI sapi). (Ilia) +- Fixed bug #39971 (pg_insert/pg_update do not allow now() to be used for + timestamp fields). (Ilia) +- Fixed bug #39952 (zip ignoring --with-libdir on zlib checks) (judas dot + iscariote at gmail dot com) +- Fixed bug #39944 (References broken). (Dmitry) +- Fixed bug #39935 (Extensions tidy,mcrypt,mhash,pdo_sqlite ignores + --with-libdir). (judas dot iscariote at gmail dot com, Derick) +- Fixed bug #39903 (Notice message when executing __halt_compiler() more than + once). (Tony) +- Fixed bug #39898 (FILTER_VALIDATE_URL validates \r\n\t etc). (Ilia) +- Fixed bug #39890 (using autoconf 2.6x and --with-layout=GNU breaks PEAR + install path). (Tony) +- Fixed bug #39884 (ReflectionParameter::getClass() throws exception for type + hint self). (thekid at php dot net) +- Fixed bug #39878 (CURL doesn't compile on Sun Studio Pro). (Ilia) +- Fixed bug #39873 (number_format() breaks with locale & decimal points). + (Ilia) +- Fixed bug #39869 (safe_read does not initialize errno). + (michiel at boland dot org, Dmitry) +- Fixed bug #39850 (SplFileObject throws contradictory/wrong error messages + when trying to open "php://wrong"). (Tony) +- Fixed bug #39832 (SOAP Server: parameter not matching the WSDL specified type + are set to 0). (Dmitry) +- Fixed bug #39825 (foreach produces memory error). (Dmitry) +- Fixed bug #39815 (SOAP double encoding is not locale-independent). (Dmitry) +- Fixed bug #39760 (cloning fails on nested SimpleXML-Object). (Rob) +- Fixed bug #39685 (iconv() - undefined function). (Hannes) +- Fixed bug #39596 (Creating Variant of type VT_ARRAY). (Rob) +- Fixed bug #39435 ('foo' instanceof bar gives invalid opcode error). (Sara) +- Fixed bugs #39361 & #39400 (mbstring function overloading problem). (Seiji) +- Fixed bug #38852 (XML-RPC Breaks iconv). (Hannes) +- Fixed bug #38542 (proc_get_status() returns wrong PID on windows). (Nuno) +- Fixed bug #37619 (proc_open() closes stdin on fork() failure). + (jdolecek at NetBSD dot org, Nuno) +- Fixed bug #37588 (COM Property propputref converts to PHP function + and can't be accesed). (Rob) +- Fixed bug #36427 (proc_open() / proc_close() leak handles on windows). + (jdolecek at NetBSD dot org, Nuno) +- Fixed bug #36392 (wrong number of decimal digits with %e specifier in + sprintf). (Matt,Ilia) +- Fixed bug #33734 (Something strange with COM Object). (Rob) +- Fixed bug #33386 (ScriptControl only sees last function of class). (Rob) + 14 Dec 2006, PHP 5.2.1RC1 - Added a meta tag to phpinfo() output to prevent search engines from indexing the page. (Ilia) - Added new function, sys_get_temp_dir(). (Hartmut) - Added missing object support to file_put_contents(). (Ilia) +- Added support for md2, ripemd256 and ripemd320 algos to hash(). (Sara) +- Added forward support for (binary) cast. (Derick) - Changed double-to-string utilities to use BSD implementation. (Dmitry, Tony) - Updated bundled libcURL to version 7.16.0 in the Windows distro. (Edin) - Updated timezone database to version 2006.16. (Derick) @@ -47,9 +114,26 @@ . Added "default" option that allows a default value to be set for an invalid or missing value. . Invalid filters fails instead of returning unsafe value + . Fixed possible double encoding problem with sanitizing filters + . Make use of space-strict strip_tags() function + . Fixed whitespace trimming + . Added support for FastCGI environment variables. (Dmitry) +- PDO_MySQL Extension Improvements (Ilia) + . Enabled buffered queries by default. + . Enabled prepared statement emulation by default. - Fixed FastCGI impersonation for persistent connections on Windows. (Dmitry) - Fixed wrong signature initialization in imagepng (Takeshi Abe) +- Fixed ftruncate() with negative size on FreeBSD. (Hannes) +- Fixed segfault in RegexIterator when given invalid regex. (Hannes) +- Fixed segfault in SplFileObject->openFile()->getPathname(). (Hannes) +- Fixed segfault in ZTS mode when OCI8 statements containing + sub-statements are destroyed in wrong order. (Tony) +- Removed double "wrong parameter count" warnings in various functions. + (Hannes) - Added optimization for imageline with horizontal and vertial lines (Pierre) +- Fixed bug #39846 (Invalid IPv4 treated as valid). (Ilia) +- Fixed bug #39845 (Persistent connections generate a warning in pdo_pgsql). + (Ilia) - Fixed bug #39816 (apxs2filter ignores httpd.conf & .htaccess php config settings). (Ilia) - Fixed bug #39797 (virtual() does not reset changed INI settings). (Ilia) @@ -62,6 +146,8 @@ - Fixed bug #39782 (setTime() on a DateTime constructed with a Weekday yields incorrect results). (Ilia) - Fixed bug #39780 (PNG image with CRC/data error raises fatal error) (Pierre) +- Fixed bug #39779 (Enable AUTH PLAIN mechanism in underlaying libc-client). + (michael dot heimpold at s2000 dot tu-chemnitz dot de, Ilia) - Fixed bug #39775 ("Indirect modification ..." message is not shown). (Dmitry) - Fixed bug #39763 (magic quotes are applied twice by ext/filter in parse_str()). (Ilia) @@ -102,6 +188,8 @@ - Fixed bug #39602 (Invalid session.save_handler crashes PHP). (Dmitry) - Fixed bug #39583 (ftp_put() does not change transfer mode to ASCII). (Tony) - Fixed bug #39576 (array_walk() doesn't separate userdata zval). (Tony) +- Fixed bug #39575 (move_uploaded_file() no longer working (safe mode related)). + (Tony) - Fixed bug #39571 (timeout ssl:// connections). (Ilia) - Fixed bug #39564 (PDO::errorInfo() returns inconsistent information when sqlite3_step() fails). (Tony) @@ -115,6 +203,7 @@ prepared statements are used in pdo_mysql). (Ilia) - Fixed bug #39508 (imagefill crashes with small images 3 pixels or less) (Pierre) +- Fixed bug #39506 (Archive corrupt with ZipArchive::addFile method). (Pierre) - Fixed bug #39483 (Problem with handling of \ char in prepared statements). (Ilia, suhachov at gmail dot com) - Fixed bug #39458 (ftp_nlist() returns false on empty dirs). (Nuno) @@ -185,6 +274,8 @@ - Fixed bug #36644 (possible crash in variant_date_from_timestamp()). (Ilia) - Fixed bug #33282 (Re-assignment by reference does not clear the is_ref flag) (Ilia,Dmitry, Matt Wilmas) +- Fixed bug #30074 (apparent symbol table error with extract($blah, EXTR_REFS)) + (Brian) - Fixed bug #29840 (is_executable() does not honor safe_mode_exec_dir setting). (Ilia)
[PATCH] New functions: array_key_index(), array_first(), array_last()
だそうで。
ただ、このパッチの有効性が(いまいち)掴めないぜ。。。発想力が乏しすぎるから?
テスト・プログラムまで添付されているのは(より理解しやすくなるので)非常に好感が持てます。