php5.3/5.4_PHP开发团队宣布立即提供PHP 5.4.6和5.3.16

php5.3/5.4

PHP Programming Language Logo Image

The PHP development team announced yesterday the immediate availability of PHP 5.4.6 and PHP 5.3.16 which fixes over 20 bugs. All users are encouraged to upgrade to the latest stable versions of PHP 5.4.x and PHP 5.3.x. Our VPS Hosting and Dedicated Hosting customers can upgrade their PHP install by using EasyApache within Web Host Manager (WHM).

PHP开发团队昨天宣布了PHP 5.4.6和PHP 5.3.16的立即可用性,该版本修复了20多个错误。 鼓励所有用户升级到PHP 5.4.x和PHP 5.3.x的最新稳定版本。 我们的VPS托管专用托管客户可以通过使用Web Host Manager(WHM)中的EasyApache升级其PHP安装。

PHP is one of the most popular server-side scripting languages used on the Web. It was created in 1995 by Rasmus Lerdorf, originally as a small set of Perl scripts he referred to as “Personal Home Page Tools”. By the time PHP 3 came along, it had many of the features that we use in PHP every day. In PHP 5 saw the introduction of better support for object-oriented programming (even though there was quite complete object-oriented support in PHP 4 – although in PHP 5 came the introduction of being able to change the visibility of methods and class variables. In PHP 5 also saw the introduction of the object-oriented lightweight and easy-to-use PHP Data Objects – an object-oriented interface for connecting to and performing database-related functions – was also introduced. PHP Data Objects is a good alternative to using standard procedural functions for connecting to databases, performing queries and fetching results.

PHP是Web上最流行的服务器端脚本语言之一。 它是由Rasmus Lerdorf于1995年创建的,最初是一小批Perl脚本,他称之为“个人主页工具”。 到PHP 3出现时,它已经具有我们每天在PHP中使用的许多功能。 在PHP 5中,引入了对面向对象编程的更好的支持(尽管PHP 4中提供了相当完整的面向对象的支持-尽管在PHP 5中引入了能够更改方法和类变量的可见性的引入。 PHP 5还介绍了面向对象的轻量级且易于使用PHP Data Objects(用于连接并执行与数据库相关的功能的面向对象的接口)的介绍。用于连接数据库,执行查询和获取结果的标准程序功能。

There has been many controversial features in PHP that has later been deprecated and removed. One of which primarily being Magic Quotes which enabled the automatic backslashes of certain characters which assisted users in escaping input in a SQL query to prevent SQL injections occurring. However, this was widely criticised for helping inexperienced developers write insecure code because they do not otherwise need to manually sanitise input prior to input being part of an SQL query for execution. In PHP 5.4, Magic Quotes was completely removed.

PHP中有许多有争议的功能,后来不推荐使用并删除它们。 其中之一主要是Magic Quotes ,它启用了某些字符的自动反斜杠,以帮助用户转义SQL查询中的输入以防止发生SQL注入。 但是,这种方法因帮助没有经验的开发人员编写不安全的代码而受到广泛批评,因为他们不需要在输入成为执行SQL查询的一部分之前手动清理输入。 在PHP 5.4中,魔术引号已完全删除。

PHP 5.4的新功能 (New features in PHP 5.4)

In PHP 5.4, some new features were introducing. As well as Magic Quotes being removed in PHP 5.4, the release also came with some good new features including:

在PHP 5.4中,引入了一些新功能。 除了PHP 5.4中删除的Magic Quotes之外,该版本还具有一些不错的新功能,包括:

  • The short open tag (<?=) is now always available regardless of the short_open_tag option in the php.ini configuration file.

    无论php.ini配置文件中的short_open_tag选项如何,短开放标记(<?=)现在始终可用。
  • From PHP 5.4 onwards, you can now access methods and class variables directly after instantiation of the class. Such as (new Class)->method().

    从PHP 5.4起,您现在可以在实例化类后直接访问方法和类变量。 如(new Class)-> method()。
  • Short array syntax. For example: $array = [“Blog”,”Forums”,”Knowledgebase”] and $array = [“name_1” => “Blog, “name_2” => “Forums”, “name_3” => “Knowledgebase”].

    短数组语法。 例如:$ array = [“ Blog”,“ Forums”,“ Knowledgebase”]和$ array = [“ name_1” =>“ Blog,” name_2“ =>” Forums“,” name_3“ =>” Knowledgebase“] 。
  • The $this reserved variable can now be used in anonymous functions (also referred to as closures).

    $ this保留变量现在可以在匿名函数(也称为闭包 )中使用。

翻译自: https://www.eukhost.com/blog/webhosting/the-php-development-team-announces-immediate-availability-of-php-5-4-6-and-5-3-16/

php5.3/5.4

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值