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
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));
18var_dump($r2=assert(0 != 0));
19echo "If this is printed BAIL hasn't worked";
20?>
21--EXPECTF--
22Deprecated: PHP Startup: assert.callback INI setting is deprecated in Unknown on line 0
23
24Deprecated: PHP Startup: assert.exception INI setting is deprecated in Unknown on line 0
25
26Deprecated: Constant ASSERT_BAIL is deprecated in %s on line %d
27
28Deprecated: Function assert_options() is deprecated since 8.3 in %s on line %d
29int(0)
30f1 called
31
32Warning: assert(): assert(0 != 0) failed in %s on line %d
33