php同时添加和更改_即将发布PHP6添加和更改

php同时添加和更改

Seeing technologies you love move forward is an exciting feeling. Another version brings hope of better integrated tools, increased security, and faster ways to complete core tasks, thus making your web application quicker. PHP6's improvements and and updates are sure to make PHP6 the best version yet.

看到您喜爱的技术向前发展是一种令人兴奋的感觉。 另一个版本带来了更好的集成工具,更高的安全性和更快的方式完成核心任务的希望,从而使您的Web应用程序更快。 PHP6的改进和更新肯定会使PHP6成为最佳版本。

register_globals,safe_mode和quote选项已删除 (register_globals, safe_mode, and quote options Removed)

register_globals, being the most significant removal, presents a giant security risk as it allows users to modify the querysting to add, change, and remove variable values. It's highly recommended that you turn this value off on your present PHP build. Magic quotes functions, most notable magic_quotes_gpc() and magic_quotes(), affect GET, POST, and COOKIE variables. I recommend turning this setting off as well.

register_globals是最重要的删除操作,由于它允许用户修改查询以添加,更改和删除变量值,因此存在巨大的安全风险。 强烈建议您在当前PHP构建中关闭此值。 魔术引号功能(最著名的magic_quotes_gpc()和magic_quotes())影响GET,POST和COOKIE变量。 我建议也关闭此设置。

集成的备用PHP缓存(APC) (Integrated Alternative PHP Cache (APC))

Though this setting will default to off, APC's caching can significantly increase the speed of your web application. There are currently some great PHP caching libraries available but integrated support can make the system run faster. You can find more information on APC at http://pecl.php.net/package/APC.

尽管此设置默认为关闭,但是APC的缓存可以显着提高Web应用程序的速度。 当前有一些很棒PHP缓存库可用,但是集成的支持可以使系统运行更快。 您可以在http://pecl.php.net/package/APC上找到有关APC的更多信息。

E_STRICT邮件与E_ALL合并 (E_STRICT Messages Merged with E_ALL)

This move will encourage better programming practices. Of course, you will need to set your error_reporting()< level to E_ALL. My websites use E_ALL while on my development server but I change to level 0 (show no errors) when moving then to their hosting server (so that if there is an error, the user can't see the error).

此举将鼓励更好的编程实践。 当然,您需要将error_reporting() <级别设置为E_ALL。 我的网站在开发服务器上时使用E_ALL,但在移动到其托管服务器时,我将级别更改为0(无错误)(因此,如果出现错误,则用户将看不到错误)。

字符串索引:{}已删除,[]成为标准用法 (String Indexes: {} Removed, [] Becomes Standard Use)

As of PHP6, you will no longer be able to use {} to reference the value of a String's character at a specified position -- the standard array position syntax, [], will become the only usage.

从PHP6开始,您将不再能够使用{}在指定位置引用String字符的值-标准数组位置语法[]将成为唯一用法。

删除了ASP样式标记(<%%>) (ASP Style Tags Removed (<% %>))

I have no idea why these were ever implemented. I've never used them, nor will I ever.

我不知道为什么要实施这些措施。 我从未使用过它们,也永远不会使用。

增加了对Unicode的支持 (Increased Unicode Support)

PHP does not presently provide adequate Unicode support and PHP6 aims to fix that. Unicode is treated on a per-request basis and cannot be used globally throughout PHP's functionality -- Unicode in PHP becomes inconsistent in usage and takes up more resources.

PHP当前没有提供足够的Unicode支持,PHP6旨在解决该问题。 Unicode是按请求处理的,不能在PHP的整个功能中全局使用-PHP中的Unicode用法不一致,占用更多资源。

其他PHP6更改: (Other PHP6 Changes:)

  • 'var' will become an alias of 'public' without an E_STRICT warning.

    在没有E_STRICT警告的情况下,“ var”将成为“ public”的别名。
  • GD1 and FreeType1 versions will be removed.

    GD1和FreeType1版本将被删除。
  • Fast CGI will always be on.

    快速CGI将始终打开。
  • HTTP_*_VARS variable will be removed.

    HTTP _ * _ VARS变量将被删除。
  • XMLReader and XMLWriter will be integrated.

    XMLReader和XMLWriter将被集成。
  • 64-bit integers will be added.

    将添加64位整数。
  • Ternary '?' valuable will not be required ($myvar = $_POST['myvar'] ?: 'myvalue'; )

    三元'?' 不需要值钱( $ myvar = $ _POST ['myvar']?: 'myvalue';)

  • foreach multidimensional arrays work (foreach($a as $k=>list($b,$c)); )

    foreach多维数组的工作原理( foreach ( $ a as $ k => list ( $ b , $ c ));)

  • Type-hinted return values (syntax not yet solidified)

    带类型提示的返回值(语法尚未固化)
  • Hardened PHP patch will be added for increased security.

    将添加强化PHP补丁程序以提高安全性。

We'll continue to eagerly monitor PHP6's progress!

我们将继续热切监视PHP6的进度!

翻译自: https://davidwalsh.name/php6

php同时添加和更改

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值