xref: /php-src/Zend/tests/assert/expect_012.phpt (revision 9a20323e)
1--TEST--
2test enable/disable assertions at runtime
3--INI--
4zend.assertions=1
5assert.exception=1
6--FILE--
7<?php
8var_dump((integer)ini_get("zend.assertions"));
9ini_set("zend.assertions", 0);
10var_dump((integer)ini_get("zend.assertions"));
11assert(false);
12ini_set("zend.assertions", 1);
13var_dump((integer)ini_get("zend.assertions"));
14assert(true);
15var_dump(true);
16?>
17--EXPECT--
18int(1)
19int(0)
20int(1)
21bool(true)
22