选择显示字体大小

php 4.1.0 出版公告(中英对照版)2


   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 do.net_load to specify the codepage (phanto)

do.net_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)

修正了在重新注册常量时的内存漏洞


 


关键字 本文所属关键字

相关 与本文相关文章

分类 所有文章关键字导航

源码编程相关

Java   Asp   PHP   .Net   XML   C/C++   CGI   VB   Jsp   J2ee   J2se   J2me   EJB   Servlet   Tomcat   Resin   Struts   Weblogic   Eclipse   ANT   GUI   JMS   Web servise   IDEA   Webphere   Hibernate   Spring   Jboss   Applet   Swing   Socket   Javamail   Perl   Ajax   P2P   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons