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
9error_reporting = -1
10display_errors = 1
11--FILE--
12<?php
13function f1($script, $line, $message, $user_message)
14{
15	echo "f1 called\n";
16}
17
18//bail out on error
19var_dump($rao = assert_options(ASSERT_BAIL, 1));
20$sa = "0 != 0";
21var_dump($r2 = assert($sa));
22echo "If this is printed BAIL hasn't worked";
23--EXPECTF--
24int(0)
25
26Warning: Missing argument 4 for f1() in %s on line 2
27f1 called
28
29Warning: assert(): Assertion "0 != 0" failed in %s on line 10
30
31