1--TEST--
2assert() - basic - Test that bailout works
3--INI--
4assert.active = 1
5assert.warning = 1
6assert.callback = f1
7assert.bail = 0
8assert.exception=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));
20var_dump($r2 = assert(0 != 0));
21echo "If this is printed BAIL hasn't worked";
22?>
23--EXPECTF--
24Deprecated: PHP Startup: assert.callback INI setting is deprecated in Unknown on line 0
25
26Deprecated: PHP Startup: assert.exception INI setting is deprecated in Unknown on line 0
27
28Deprecated: Constant ASSERT_BAIL is deprecated in %s on line %d
29
30Deprecated: Function assert_options() is deprecated since 8.3 in %s on line %d
31int(0)
32f1 called
33
34Warning: assert(): assert(0 != 0) failed in %s on line %d
35