仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1991|回复: 19
打印 上一主题 下一主题

[学习教程] PHP网站制作之PHP 4.1.0 出书通知布告(中英对比版)2

[复制链接]
只想知道 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-2-4 00:21:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
PHP于1994年由Rasmus Lerdorf创建,刚刚开始是Rasmus Lerdorf为了要维护个人网页而制作的一个简单的用Perl语言编写的程序。   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)

更好的检测从字符串到浮点数的转换

- WordStrd 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)

修改了在从头注册常量时的内存破绽
  不懂的问题有很多高手帮你解决。但不要认为你是新手,就不能帮助别人,比如今天你学会了怎样安装PHP,明天还可能有朋友会问这个问题,你就可以给他解答,不要认为这是浪费时间,忙别人其实就是帮助自己。
冷月葬花魂 该用户已被删除
沙发
发表于 2015-2-4 12:24:18 | 只看该作者
说点我烦的低级错误吧,曾经有次插入mysql的时间 弄了300年结果老报错,其实mysql的时间是有限制的,大概是到203X年  具体的记不清啦,囧。
海妖 该用户已被删除
板凳
发表于 2015-2-9 22:34:25 | 只看该作者
首推的搜索引擎当然是Google大神,其次我比较喜欢 百度知道。不过搜出来的结果往往都是 大家copy来copy去的,运气的的概率很大。
小魔女 该用户已被删除
地板
发表于 2015-2-28 02:44:18 | 只看该作者
做为1门年轻的语言,php一直很努力。
再见西城 该用户已被删除
5#
发表于 2015-3-9 19:21:23 | 只看该作者
php里的数组为空的时候是不能拿来遍历的;(这个有点低级啊,不过我刚被这个边界问题墨迹了好长一会)
飘飘悠悠 该用户已被删除
6#
发表于 2015-3-16 05:30:53 | 只看该作者
因为blog这样的可以让你接触更多要学的知识,可以接触用到类,模板,js ,ajax
因胸联盟 该用户已被删除
7#
发表于 2015-3-21 01:16:30 | 只看该作者
最后介绍一个代码出错,但是老找不到错误方法,就是 go to wc (囧),出去换换气没准回来就找到错误啦。
愤怒的大鸟 该用户已被删除
8#
发表于 2015-4-2 05:59:50 | 只看该作者
曾经犯过一个很低级的错误,我在文件命名的时候用了一个横线\\\\\\\'-\\\\\\\' 号,结果找了好几个小时的错误,事实是命名的时候 是不能用横线 \\\\\\\'-\\\\\\\' 的,应该用的是下划线  \\\\\\\'_\\\\\\\' ;
爱飞 该用户已被删除
9#
发表于 2015-4-10 12:12:14 | 只看该作者
首推的搜索引擎当然是Google大神,其次我比较喜欢 百度知道。不过搜出来的结果往往都是 大家copy来copy去的,运气的的概率很大。
小妖女 该用户已被删除
10#
发表于 2015-4-11 05:26:28 | 只看该作者
兴趣是最好的老师,百度是最好的词典。
11#
发表于 2015-4-12 14:01:02 | 只看该作者
有时候汉字的空格也能导致页面出错,所以在写代码的时候,要输入空格最好用引文模式。
变相怪杰 该用户已被删除
12#
发表于 2015-4-20 08:47:54 | 只看该作者
环境搭建好,当你看见你的浏览器输出“it works\\\\\\\"时你一定是喜悦的。在你解决问题的时候,我强烈建议多读php手册。
乐观 该用户已被删除
13#
发表于 2015-4-21 04:21:32 | 只看该作者
首先我是坚决反对新手上来就用框架的,因为对底层的东西一点都不了解,造成知识上的真空,会对以后的发展不利。我的观点上手了解下框架就好,代码还是手写。当然啦如果是位别的编程语言的高手的话,这个就另当别论啦。
兰色精灵 该用户已被删除
14#
发表于 2015-4-21 11:19:39 | 只看该作者
使用zendstdio 写代码的的时候,把tab 的缩进设置成4个空格是很有必要的
只想知道 该用户已被删除
15#
 楼主| 发表于 2015-6-27 20:54:22 | 只看该作者
兴趣是最好的老师,百度是最好的词典。
飘灵儿 该用户已被删除
16#
发表于 2015-7-2 01:16:50 | 只看该作者
我要在声明一下:我是个菜鸟!!我对php这门优秀的语言也是知之甚少。但是我要在这里说一下php在网站开发中最常用的几个功能:
admin 该用户已被删除
17#
发表于 2015-7-11 00:47:59 | 只看该作者
对于懒惰的朋友,我推荐php的集成环境xampp或者是wamp。这两个软件安装方便,使用简单。但是我还是强烈建议自己动手搭建开发环境。
分手快乐 该用户已被删除
18#
发表于 2015-7-18 06:27:34 | 只看该作者
首先我是坚决反对新手上来就用框架的,因为对底层的东西一点都不了解,造成知识上的真空,会对以后的发展不利。我的观点上手了解下框架就好,代码还是手写。当然啦如果是位别的编程语言的高手的话,这个就另当别论啦。
谁可相欹 该用户已被删除
19#
发表于 2015-7-18 22:03:28 | 只看该作者
写的比较杂,因为我也是个新手,不当至于大家多多指正。
蒙在股里 该用户已被删除
20#
发表于 2015-9-23 08:57:19 | 只看该作者
Apache不是非得用80或者8080端口的,我刚开始安得时候就是80端口老占用,就用了个 81端口,结果照常,就是输localhost的时候,应该输入为 localhost:81
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-5-1 21:11

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表