summaryrefslogtreecommitdiff
path: root/Zend/tests/assert/expect_017.phpt
blob: bc2c4d41a7ac528e7f0101b47cbc05dc6df949ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
test enable/disable assertions at runtime (assertions completely disabled)
--INI--
zend.assertions=-1
assert.exception=0
--FILE--
<?php
var_dump(assert(false));
var_dump(assert(true));
ini_set("zend.assertions", 0);
ini_set("zend.assertions", 1);
?>
--EXPECTF--
bool(true)
bool(true)

Warning: zend.assertions may be completely enabled or disabled only in php.ini in %sexpect_017.php on line 4

Warning: zend.assertions may be completely enabled or disabled only in php.ini in %sexpect_017.php on line 5