xref: /PHP-8.2/Zend/tests/assert/expect_017.phpt (revision 9a20323e)
1--TEST--
2test enable/disable assertions at runtime (assertions completely disabled)
3--INI--
4zend.assertions=-1
5assert.exception=0
6--FILE--
7<?php
8var_dump(assert(false));
9var_dump(assert(true));
10ini_set("zend.assertions", 0);
11ini_set("zend.assertions", 1);
12?>
13--EXPECTF--
14bool(true)
15bool(true)
16
17Warning: zend.assertions may be completely enabled or disabled only in php.ini in %sexpect_017.php on line 4
18
19Warning: zend.assertions may be completely enabled or disabled only in php.ini in %sexpect_017.php on line 5
20