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)
23
24Deprecated: assert(): Calling assert() with a string argument is deprecated in %s on line %d
25f1 called
26
27Warning: assert(): assert($sa): "0 != 0" failed in %s on line 10
28