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