1--TEST--
2assert() - basic - Test that bailout works
3--INI--
4assert.active = 1
5assert.warning = 1
6assert.callback = f1
7assert.quiet_eval = 1
8assert.bail = 0
9--FILE--
10<?php
11function f1()
12{
13	echo "f1 called\n";
14}
15
16//bail out on error
17var_dump($rao=assert_options(ASSERT_BAIL, 1));
18$sa = "0 != 0";
19var_dump($r2=assert($sa));
20echo "If this is printed BAIL hasn't worked";
21--EXPECTF--
22int(0)
23f1 called
24
25Warning: assert(): Assertion "0 != 0" failed in %s on line 10
26