长沙北大青鸟作者:科泰校区佚名
PHP 4.1.0 Release Announcement
PHP 4.1.0 出版公告(1)
After a lengthy QA process, PHP 4.1.0 is finally out.
Download at http://www.php.net/downloads.php !
PHP 4.1.0 includes several other key improvements:
- A new input interface for improved security (read below)
一个新的输入界面来提高安全性
- Highly improved performance in general
极大提高了性能
- Revolutionary performance and stability improvements under
Windows. The multithreaded server modules under Windows (ISAPI,
Apache, etc.) perform as much as 30 times faster under load! We
want to thank Brett Brewer and his team in Microsoft for working
with us to improve PHP for Windows.
Windows 下革命性的性能和稳定性。多线程服务器模块提供了快30倍的性能。
- Versioning support for extensions. Right now it's barely being
used, but the infrastructure was put in place to support separate
version numbers for different extensions. The negative side effect
is that loading extensions that were built against old versions of
PHP will now result in a crash, instead of in a nice clear message.
Make sure you only use extensions built with PHP 4.1.0.
扩展翻译支持,现在他还很少用到,但是放置了基础构造来支持某些不同版本号的扩展模块。负面影响是他和老版本的扩展模块冲突。你需要确定使用了 php4.1.0的扩展模块。
- Turn-key output compression support
支持 Turn-key 输出压缩
- *LOTS* of fixes and new functions
修正了很多地方,增加了许多函数。
As some of you may notice, this version is quite historical, as it's
the first time in history we actually incremented the middle digit! :)
The two key reasons for this unprecedented change were the new input
interface, and the broken binary compatibility of modules due to the
versioning support.
{没看懂!!呵呵!以后看懂了再翻译}
Following is a description of the new input mechanism. For a full
list of changes in PHP 4.1.0, scroll down to the end of this section.
下面是新的输入机制的描述。完整的更改列表请看后面
-----------------------------------
SECURITY: NEW INPUT MECHANISM
安全:新的输入机制
First and foremost, it's important to stress that regardless of
anything you may read in the following lines, PHP 4.1.0 *supports*
the old input mechanisms from older versions. Old applications
should go on working fine without modification!
首先,也是最重要的,必须强调对下面内容足够重视是非常重要的。php 4.1.0 支持旧的输入机制。老的应用程序仍然可以运行,不用修改。
Now that we have that behind us, let's move on :)
下面是内容
For various reasons, PHP setups which rely on register_globals
being on (i.e., on form, server and environment variables becoming
a part of the global namespace, automatically) are very often
exploitable to various degrees. For example, the piece of code:
由于各种原因,PHP需要设置 register_globlas ON(例如在标单,服务器,环境变量自动成为全局命名空间的一部分),他们经常被不同程度的干扰。下面是一段代码:
<?php
if (authenticate_user()) {
$authenticated = true;
}
...
?>
May be exploitable, as remote users can simply pass on 'authenticated'
as a form variable, and then even if authenticate_user() returns false,
$authenticated will actually be set to true. While this looks like a
simple example, in reality, quite a few PHP applications ended up being
exploitable by things related to this misfeature.
可以通过表单里面传送 authenticated 变量来欺骗,即使 authenticate_user()返回false,$authenticated 仍然被设置为true.这只是一个非常简单的例子,实际上,相当多的程序被类似的错误特性欺骗
While it is quite possible to write secure code in PHP, we felt that the
fact that PHP makes it too easy to write insecure code was bad, and we've
decided to attempt a far-reaching change, and deprecate register_globals.
Obviously, because the vast majority of the PHP code in the world relies
on the existence of this feature, we have no plans to actually remove it
from PHP anytime in the foreseeable future, but we've decided to encourage
people to shut it off whenever possible.
当然,完全可以书写安全的PHP代码,我们觉得事实上,PHP使得书写不安全代码变得非常容易是非常糟糕的事情。我们决定尝试一个 far-reaching 改变。反对 register_globals.很显然,由于多数代码依赖于这个特征,我们没有办法在将来的某个时刻真正删除它。但是我们决定鼓励人们关闭它
To help users build PHP applications with register_globals being off,
we've added several new special variables that can be used instead of the
old global variables. There are 7 new special arrays:
为了在关闭 register_globals 情况下帮助用户创建 PHP 应用程序,我们增加了一些新的特殊变量来代替老的全局变量使用。他们是7个新的特殊数组:
$_GET - contains form variables sent through GET
包含着通过GET发来的变量
$_POST - contains form variables sent through POST
包含着通过POST发送来的变量
$_COOKIE - contains HTTP cookie variables
包含着HTTP cookie 的变量
$_SERVER - contains server variables (e.g., REMOTE_ADDR)
包含着服务器变量(如 REMOTE_ADDR)
$_ENV - contains the environment variables
包含着环境变量
$_REQUEST - a merge of the GET variables, POST variables and Cookie variables.
In other words - all the information that is coming from the user,
and that from a security point of view, cannot be trusted.
是 GET/POST/Cookie 变量的集合,也就是说,所有的来自用户和安全表单的信息。但是从安全角度来看,不能够信任它们。
$_SESSION - contains HTTP variables registered by the session module
包含着所有session模块注册的HTTP变量
Now, other than the fact that these variables contain this special information,
they're also special in another way - they're automatically global in any
scope. This means that you can access them anywhere, without having to
'global' them first. For example:
现在,事实上这些变量包含着特殊的信息,他们在任何环境下同样是自动的全局变量。也就是说你可以在任何地方存取他们,不需要全局化他们。例如:
function example1()
{
print $_GET["name"]; // works, 'global $_GET;' is not necessary!
//不需要声明 $_GET 是全局变量
}
would work fine! We hope that this fact would ease the pain in migrating
old code to new code a bit, and we're confident it's going to make writing
new code easier. Another neat trick is that creating new entries in the
$_SESSION array will automatically register them as session variables, as
if you called session_register(). This trick is limited to the session
module only - for example, setting new entries in $_ENV will *not* perform
an implicit putenv().
运行的很好。我们希望这个情况可以使得旧代码移植能够容易一些,我们确信它能使书写新代码更容易。另外一个窍门是创建新的 $_SESSION 数组入口会自动注册他们为session b变量,就好像调用 session_register()一样。这个窍门仅适用于 session 模块。例如,设置新的 $_ENV 入口不会隐含执行 putenv()。
PHP 4.1.0 still defaults to have register_globals set to on. It's a
transitional version, and we encourage application authors, especially
public ones which are used by a wide audience, to change their applications
to work in an environment where register_globals is set to off. Of course,
they should take advantage of the new features supplied in PHP 4.1.0 that
make this transition much easier.
PHP 4.1.0 默认还是设置 register_globals 为On,她是过渡版本,我们程序做着,特别是被广泛接受的,改变他们的应用程序,使得在 register_globals 为 off 情况下也能工作。当然,他们需要使用 PHP 4.1.0 的新特征来使得转换更容易些。
As of the next semi-major version of PHP, new installations of PHP will
default to having register_globals set to off. No worries! Existing
installations, which already have a php.ini file that has register_globals
set to on, will not be affected. Only when you install PHP on a brand new
machine (typically, if you're a brand new user), will this affect you, and
then too - you can turn it on if you choose to.
在下一个不完全版本力,将会魔人设置 register_globals 为off.不用担心,已经安装好的,php.ini 里面已经设置 register_globals 为on 的,不会受到影响。只有在你安装php为一个新机器时(一般是一个新用户)才会影响你,你可以选择打开它。
Note: Some of these arrays had old names, e.g. $HTTP_GET_VARS. These names
still work, but we encourage users to switch to the new shorter, and
auto-global versions.
注意:这些数组中的几个有老的名字,例如 $HTTP_GET_VARS. 这些名字依然工作。我们建议使用新的更短的自动全局化的变量。
Thanks go to Shaun Clowes (shaun@securereality.com.au) for pointing out this
problem and for analyzing it.
-------------------------------------
FULL LIST OF CHANGES
完整的改变列表
10 Dec 2001, Version 4.1.0
- Worked around a bug in the MySQL client library that could cause PHP to hang
when using unbuffered queries. (Zeev)
处理了在MySQL客户端库里使用未缓冲的查询引起PHP挂起的问题。
- Fixed a bug which caused set_time_limit() to affect all subsequent requests to running Apache child process. (Zeev)
修正了使得set_time_limit()影响所有的子请求来运行Apache子进程的问题
- Removed the sablotron extension in favor of the new XSLT extension. (Sterling)
去掉了 sablotron 模块,使用新的 XSLT 扩展模块
- Fixed a bug in WDDX deserialization that would sometimes corrupt the root element if it was a scalar one. (Andrei)
修正了 WDDX 反序列化时如果是标量可能破坏根元素的问题
- Make ImageColorAt() and ImageColorsForIndex() work with TrueColor images. (Rasmus)
使得 ImageColorAt 和 ImageColorsForIndex()可以工作于 TryeColor 图像
- Fixed a bug in preg_match_all() that would return results under improper indices in certain cases. (Andrei)
修正了preg_match_all()在某些情况下返回不恰当索引的结果
- Fixed a crash in str_replace() that would happen if search parameter was an array and one of the replacements resulted in subject string being empty. (Andrei)
修正了一个str_replace()的隐患,在搜索参数是一个数组,条件字符串替换结果中的一个是空的时候发生。
- Fixed MySQL extension to work with MySQL 4.0. (Jani)
修正了 MySQL 扩展模块,可以工作于 MySQL 4.0
- Fixed a crash bug within Cobalt systems. Patch by tomc@tripac.com. (Jani)
修正了一个 Cobalt 系统力的漏洞
- Bundled Dan Libby's xmlrpc-epi extension.
捆绑了 Dan Libby 的 xmlrpc-epi 扩展模块
- Introduced extension version numbers. (Stig)
引入了许多扩展模块
- Added version_compare() function. (Stig)
增加了 version_compare() 函数
- Fixed pg_last_notice() (could cause random crashes in PostgreSQL applications, even if they didn't use pg_last_notice()). (Zeev)
修正了 pg_last_notice()(可能在 PostgreSQL 应用程序引起随机的崩溃,即使没有使用这个函数
- Fixed DOM-XML's error reporting, so E_WARNING errors are given instead of E_ERROR error's, this allows you to trap errors thrown by DOMXML functions. (Sterling)
修正了 DOM-XML 的错误报告, 使用 E_WARNING 错误代替 E_ERROR 的错误。这让你可以使用 DOMXML 函数捕捉异常
- Fixed a bug in the mcrypt extension, where list destructors were not properly being allocated.(Sterling)
修正了 mcrypt 扩展的错误,列表析构没有正确的定位
- Better Interbase blob, null and error handling. (Patch by Jeremy Bettis)
更好的 Intercase 的 blob,null 和 错误处理
- Fixed a crash bug in array_map() if the input arrays had string or non-sequential keys. Also modified it so that if a single array is passed, its keys are preserved in the resulting array. (Andrei)
修正了 array_map() 在输入数组有字符串或者不连续关键字的崩溃错误。同时修改了在传递单个数组时,结果数组将保留她的关键字。
- Fixed a crash in dbase_replace_record. (Patch by robin.marlow@dps-int.com)
修正了 dbase_replace_record 的缺陷
- Fixed a crash in msql_result(). (Zeev)
修正了 msql_result() 的一个缺陷
PHP 4.1.0 Release Announcement
PHP 4.1.0 出版公告(2)
- Added support for single dimensional SafeArrays and Enumerations. Added an is_enum() function to check if a
component implements an enumeration. (Alan, Harald)
增加了支持一维 SafeArray 和 Enumerations.增加了 is_enum(0 来去定一个部件是否来自一个 enumeration
- Fixed a bug in dbase_get_record() and dbase_get_record_with_names(). boolean fields are now returned correctly.
Patch by Lawrence E. Widman (Jani)
修正了 dbase_get_record() 和 dbase_get_record_with_names() 的错误。现在能正确的返回 boolean 字段。
- Added --version option to php-config. (Stig)
增加了 --version 的配置选项
- Improved support for thttpd-2.21b by incorporating patches for all known bugs. (Sascha)
通过增加已知错误的补丁增强了对 thttpd-2.21b 的支持
- Added ircg_get_username, a roomkey argument to ircg_join, error fetching infrastructure, a tokenizer to speed up
message processing, and fixed a lot of bugs in the IRCG extension. (Sascha)
增加了 ircg_get_username,一个 ircg_join 的参数,错误取得机构,一个tokenizer 来加快信息处理,修正了 IRCG 扩展里面的许多
错误。
- Improved speed of the serializer/deserializer. (Thies, Sascha)
加快了序列化/反序列化的速度
- Floating point numbers are better detected when converting from strings. (Zeev, Zend Engine)
更好的检测从字符串到浮点数的转换
- Replaced php.ini-optimized with php.ini-recommended. As the name implies, it's warmly recommended to use this
file as the basis for your PHP configuration, rather than php.ini-dist. (Zeev)
把 php.ini-optimized 改名为 php.ini-recommended. 名字暗示着,他只是热心的推荐用户使用这个文件作为 PHP 的基础配置文件,
而不是使用 php.ini.dist
- Restore xpath_eval() and php_xpathptr_eval() for 4.0.7. There are still some known leaks. (Joey)
修复了 xpatch_eval()和 php_xpatchptr_eval(), 他们还有一些已知的漏洞
- Added import_request_variables(), to allow users to safely import form variables to the global scope (Zeev)
增加了 import_request_variables(),允许用户安全的从变量输出到全局范围
- Introduced a new $_REQUEST array, which includes any GET, POST or COOKIE variables. Like the other new
variables, this variable is also available regardless of the context. (Andi & Zeev)
引入了一个新的 $_REQUEST 数组,包括任何 GET,POST 或者 COOKIE 变量,和其他新变量一样,这个变量也是不用管他的上下文而可以使
用
- Introduced $_GET, $_POST, $_COOKIE, $_SERVER and $_ENV variables, which deprecate the old $HTTP_*_VARS arrays.
In addition to be much shorter to type - these variables are also available regardless of the scope, and there's
no need to import them using the 'global' statement. (Andi & Zeev)
引入了 $_GET,$POST,$COOKIE,$SERVER 和 $_ENV 变量,不赞成使用老的 $HTTP_*_VARS 数组。另外他们更加短,这些变量在任何范围
都可以使用,不需要使用 global 引用他们。
- Added vprintf() and vsprintf() functions that allow passing all arguments after format as an array. (Andrei)
增加了 bprintf()和vsprintf()函数,允许你在格式后面用数组作为参数。
- Added support for GD2 image type for ImageCreateFromString() (Jani)
增加了 GD2 图像格式的 ImageCreateFormString() 支持
- Added ImageCreateFromGD(), ImageCreateFromGD2(), ImageCreateFromGD2part(), ImageGD() and ImageGD2() functions
(Jani)
增加了以上几个函数
- addcslashes now warns when charlist is invalid. The returned string remained the same (Jeroen)
addcslashes 在字符列表非法是给处警告,返回以前的字符串
- Added optional extra argument to gmp_init(). The extra argument indicates which number base gmp should use when
converting a string to the gmp-number. (Troels)
增加了 gmp_init()可选的额外参数。参数指出在 gmp 把字符串转化为 gmp-number 时的数字基数
- Added the Cyrus-IMAP extension, which allows a direct interface to Cyrus' more advanced capabilities. (Sterling)
增加了 Cyrus-IMAP 扩展,允许一个到 Cyrus 的高级功能的直接借口
- Enhance read_exif_data() to support multiple comment tags (Rasmus)
增强了 read_exif_data(), 支持多个注释标记
- Fixed a crash bug in array_map() when NULL callback was passed in. (Andrei)
修正了在 array_map() 里面在回调是一个 NULL 时的缺陷
- Change from E_ERROR to E_WARNING in the exif extension (Rasmus)
在 exif 扩展里面把 E_ERRPR 改成 E_WARNING
- New pow() implementation, which returns an integer when possible, and warnings on wrong input (jeroen)
新的 pow() 函数。可能的情况下返回一个整数,如果输入错误返回警告
- Added optional second parameter to trim, chop and ltrim. You can now specify which characters to trim (jeroen)
对 trim,chop,ltrim 增加了第二个参数,可以指定哪个字符被去掉
- Hugely improved the performance of the thread-safe version of PHP, especially under Windows (Andi & Zeev)
极大的提高了PHP 的线程版本的性能,特别是在 Windows 下面
- Improved request-shutdown performance significantly (Andi & Zeev, Zend Engine)
显著的改善了 请求中断(request-shutdown)的性能
- Added a few new math functions. (Jesus)
增加了一个新的数学函数
- Bump bundled expat to 1.95.2 (Thies)
[没看懂,好像压缩包升级到 1。95。2]
- Improved the stability of OCIPlogon() after a database restart. (Thies)
改善了在数据库重新启动后,OCIPlogon()的稳定性
- Fixed __FILE__ in the CGI & Java servlet modes when used in the main script. It only worked correctly in
included files before this fix (Andi)
修正了在主脚本里面使用 CGI/JAVA servlet 模式里的 __FILE__.在修正前他只对包含文件工作
- Improved the Zend hash table implementation to be much faster (Andi, Zend Engine)
改良了 Zend hash 表更加的快
- Updated PHP's file open function (used by include()) to check in the calling script's directory in case the file
can't be found in the include_path (Andi)
更新了文件打开函数(在include()里面使用的)能在include_path 没有找到文件的情况下在调用脚本的目录检测文件
- Fixed a corruption bug that could cause constants to become corrupted, and possibly prevent resources from
properly being cleaned up at the end of a request (Zeev)
修正了可能引起容器中断的错误,可能造成在请求完成后不能正确的清除
- Added optional use of Boyer-Moore algorithm to str_replace() (Sascha)
str_replace()增加了可选的Boyer-Moore 法则
- Fixed and improved shared-memory session storage module (Sascha)
修正并改良了共享内存事务存储模块
- Add config option (always_populate_raw_post_data) which when enabled will always populate $HTTP_RAW_POST_DATA
regardless of the post mime type (Rasmus)
增加了配置参数(always_populate_raw_post_data),允许情况下,无论任何post 类型,都捆绑 $HTTP_RAW_POST_DATA
- Added support for socket and popen file types to ftp_fput (Jason)
增加了 ftp_fput 的 socket 和 popen 文件类型
- Fixed various memory leaks in the LDAP extension (Stig Venaas)
修正了 LDAP 扩展里面的多种内存漏洞
- Improved interactive mode - it is now available in all builds of PHP, without any significant slowdown (Zeev,
Zend Engine)
改善了交互模式,在所有php里都可以用,不会有任何明显的速度减慢
- Fixed crash in iptcparse() if the supplied data was bogus. (Thies)
修正了 iptcprase()在提供的数据是伪造的情况下的缺陷,
- Fixed return value for a failed snmpset() - now returns false (Rasmus)
修正了 snmpset()的错误返回值为 false
- Added hostname:port support to snmp functions (nbougues@axialys.net, Rasmus)
增加了 snmp 函数的 主机名:端口 格式的支持
- Added fdf_set_encoding() function (Masaki YATSU, Rasmus)
增加了 fdf_set_encoding()函数
- Reversed the destruction-order of resources. This fixes the reported OCI8 "failed to rollback outstanding
transactions!" message (Thies, Zend Engine)
翻转了资源毁灭顺序。他修正了在 OCI8 里面报告的 "failed to roolback outstanding transactions!"信息
- Added option for returning XMLRPC fault packets. (Matt Allen, Sascha Schumann)
增加了 XMLPRC 错误包的返回参数
- Improved range() function to support range('a','z') and range(9,0) types of ranges. (Rasmus)
改良了 range()函数,支持 range('a','z')和 range(9,0)格式
- Added getmygid() and safe_mode_gid ini directive to allow safe mode to do a gid check instead of a uid check.
(James E. Flemer, Rasmus)
增加了 getmugid()和sage_mod_gid 的配置指示,允许在安全模式下使用 gid 检测代替 uid 检测
- Made assert() accept the array(&$obj, 'methodname') syntax. (Thies)
使得assert()接受数组
- Made sure that OCI8 outbound variables are always zero-terminated. (Thies)
确认在OCI8 里面超出范围的变量总是以0结束
- Fixed a bug that allowed users to spawn processes while using the 5th parameter to mail(). (Derick)
修正了在mail()的第5个参数允许用户产生进程的错误
- Added nl_langinfo() (when OS provides it) that returns locale.
增加了 nl_langinfo()(在系统支持的情况下),返回本地信息
- Fixed a major memory corruption bug in the thread safe version. (Zeev)
修正了在线程安全版本里的一个很大的内存中断错误
- Fixed a crash when using the CURLOPT_WRITEHEADER option. (Sterling)
修正了在使用 CURLOPT_WRITEHEADER 参数的缺陷
- Added optional suffix removal parameter to basename(). (Hartmut)
增加了basename()的可选的后缀移除参数
- Added new parameter UDM_PARAM_VARDIR ha in Udm_Set_Agent_Param() function to support alternative search data
directory. This requires mnogoSearch 3.1.13 or later.
增加了 Udm_Set_Agent_Param()函数的新参数 UDM_PARAM_VARDIR. 支持可选的搜索数据目录。需要 mmogoSearch 3.1.13 或更新版本
- Fixed references in sessions. This doesn't work when using the WDDX session-serializer. Also improved speed of
sessions. (Thies)
修正了session的引用,在使用 WDDX session-serializer 时不工作。同时改善了session的速度
- Added new experimental module pcntl (Process Control). (Jason)
增加了新的实验中的模块 pcntl
- Fixed a bug when com.allow_dcom is set to false. (phanto)
修正了在 com.allow_dcom 设置为 false 时的错误
- Added a further parameter to the constructor to load typelibs from file when instantiating components (e.g. DCOM
Components without local registration). (phanto)
在实例化部件时增加一个从文件调入类库的参数来构造它
- Added the possibility to specify typelibs by full name in the typelib file (Alan Brown)
增加了在类库文件里指定类库全名的可能
- Renamed the ZZiplib extension to the Zip extension, function names have also changed accordingly, functionality,
has stayed constant. (Sterling)
ZZiplib 扩展改名为Zip扩展,同时函数名也改了,功能没变
- Made the length argument (argument 2) to pg_loread() optional, if not specified data will be read in 1kb chunks.
(Sterling)
让 pg_loread()的长度参数(第二个)为可选参数。如果没有指定将读取1Kb的块
- Added a third argument to pg_lowrite() which is the length of the data to write. (Sterling)
增加了 pg_lowrite()的第三个参数,为写数据的长度
- Added the CONNECTION_ABORTED, CONNECTION_TIMEOUT and CONNECTION_NORMAL constants. (Zak)
增加了上面几个常量
- Assigning to a string offset beyond the end of the string now automatically increases the string length by
padding it with spaces, and performs the assignment. (Zeev, Zend Engine)
指派字符串的偏移超过字符串的结尾将会自动用空白增加字符串的长度,然后执行指定
- Added warnings in case an uninitialized string offset is read. (Zeev, Zend Engine)
增加了在读取没有初始化的字符串偏移的情况下给出警告
- Fixed a couple of overflow bugs in case of very large negative integer numbers. (Zeev, Zend Engine)
修正了在非常的的负整数情况下的一对溢出错误
- Fixed a crash bug in the string-offsets implementation (Zeev, Zend Engine)
修正了在执行字符串偏移时的缺陷
- Improved the implementation of parent::method_name() for classes which use run-time inheritance. (Zeev, Zend
Engine)
改善了用户运行期间继承的类的parent::method_name()
- Added 'W' flag to date() function to return week number of year using ISO 8601 standard. (Colin)
增加了data()的 'W' 标志,返回使用 ISO 8601 标准的星期数
- Made the PostgreSQL driver do internal row counting when iterating through result sets.(gvz@2scale.net)
使得 PostgreSQL 驱动在反复结果调整情况下进行内部行数统计
- Updated ext/mysql/libmysql to version 3.23.39; Portability fixes, minor bug fixes. (tim@mysql.com)
升级 ext/mysql/libmysql 到 3.23.39 版本。
- Added get_defined_constants() function to return an associative array of constants mapped to their values.
(Sean)
增加了 get_defined_constants()函数,返回映射所有值的常量关联数组
- New mailparse extension for parsing and manipulating MIME mail. (Wez)
新的邮件解析扩展,用于解析和应付 MIME 邮件
- Define HAVE_CONFIG_H when building standalone DSO extensions. (Stig)
在创建DSO扩展时定义HAVA_CONFIG_H
- Added the 'u' modifier to printf/sprintf which prints unsigned longs. (Derick)
增加了 printf/sprintf 的 'u' 参数来输出无符号的长整数
- Improved IRIX compatibility. (Sascha)
提高了 IRIX 的兼容性
- Fixed crash bug in bzopen() when specifying an invalid file. (Andi)
修正了在 bzopen()指定了非法文件的缺陷
- Fixed bugs in the mcrypt extension that caused crashes. (Derick)
修正了 mcrypt 扩展引起缺陷的错误
- Added the IMG_ARC_ROUNDED option for the ImageFilledArc() function, which specified that the drawn curve should
be rounded. (Sterling)
增加了 ImageFilledArc()函数的 IMG_ARC_ROUNDED 参数,指定画的曲线是圆形的
- Updated the sockets extension to use resources instead of longs for the socket descriptors. The socket functions
have been renamed to conform with the PHP standard instead of their C counterparts. The sockets extension is now
usable under Win32. (Daniel)
更新了sockets 扩展,使用资源代替使用 socket 描述符的长整数。soket 函数已经重新命名来遵循PHP的标准代替C的副本。sockets 扩
展目前可以在 Win32 下使用
- Added disk_total_space() to return the total size of a filesystem.(Patch from Steven Bower)
增加了 disk_total_space()返回文件系统的总空间
- Renamed diskfreespace() to disk_free_space() to conform to established naming conventions. (Jon)
diskfreespace()改名为 disk_free_space()来遵循已经制订好的命名规范
- Fixed #2181. Now zero is returned instead of an unset value for 7-bit encoding and plain text body type. (Vlad)
修正了 #2181. 返回一个0,代替一个没有设置的7位编码和无格式文本主体类型
- Fixed a bug in call_user_*() functions that would not allow calling functions/methods that accepted parameters
by reference. (Andrei)
修正了 call_user_*()函数不允许调用接受引用参数的错误
- Added com_release($obj) and com_addref($obj) functions and the related class members $obj->Release() and
$obj->AddRef() to gain more control over the used COM components. (phanto)
增加了 com_release($obj)和 com_addref($obj)函数和相关的成员 $obj->Release() 和 $obj_AddRef() 来获得对使用过的 COM 部
件的更多控制
- Added an additional parameter to dotnet_load to specify the codepage (phanto)
dotnet_load 增加了新的参数来指定页面编码
- Added peak memory logging. Use --enable-memory-limit to create a new Apache 1.x logging directive
"{mod_php_memory_usage}n" which will log the peak amount of memory used by the script. (Thies)
增加了最高内存日志。使用 --enable-memory-limit 来创建一个 Apache 1.X的日志,指示"{mod_php_memory_usage}n", 纪录脚本最
大使用内存
- Made fstat() and stat() provide identical output by returning a numerical and string indexed array. (Jason)
使得 fstat() 和 stat() 提供相同的树值/字符串输出代替数组
- Fixed memory leak upon re-registering constants. (Sascha, Zend Engine)
修正了在重新注册常量时的内存漏洞
As some of you may notice, this version is quite historical, as it's the first time in history we actually incremented the middle digit! :) The two key reasons for this unprecedented change were the new input interface, and the broken binary compatibility of modules due to the versioning support.
正如您所注意到的,这个版本真正具有历史意义,因为以往以来,我们还是第一次往中间版号增加了数字!此空前变化的两个关键原因是:新的输入界面;由于版本支持所带来的非连续版本模块的兼容性。
Versioning support for extensions.
扩展模块的版本支持。