[英]What does this mean in php.ini?
assert.active = On
assert.bail = Off
How does it work? 它是如何工作的?
If assert.active=on
you can call assert('$x==1')
in your code. 如果
assert.active=on
,则可以在代码中调用assert('$x==1')
。 If it fails (ie $x is something else than 1), depending on the value of assert.bail your script will either terminate or you get a warning. 如果失败(即$ x不是1),则取决于assert.bail的值,脚本将终止或得到警告。 See more in http://www.php.net/manual/en/function.assert.php
在http://www.php.net/manual/en/function.assert.php中查看更多
From the PHP Manual : 从PHP手册 :
assert.active: Enable assert() evaluation.
assert.active:启用assert()评估。
assert.bail : Terminate script execution on failed assertions.assert.bail:在失败的断言上终止脚本执行。
You can always find it from php user manual 您总是可以从php用户手册中找到它
http://php.net/manual/en/info.configuration.php http://php.net/manual/zh/info.configuration.php
assert.active boolean assert.active布尔值
Enable assert() evaluation. 启用assert()评估。
assert.bail boolean assert.bail布尔值
Terminate script execution on failed assertions. 终止对失败的断言的脚本执行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.