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

Warning: assert(): assert(false) failed in %sexpect_016.php on line 6
bool(false)
bool(true)

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