1--TEST--
2assert() - basic - correct call back values before and after assert.
3--INI--
4assert.active = 1
5assert.warning = 1
6assert.callback=f1
7assert.bail = 0
8assert.exception=0
9--FILE--
10<?php
11function f2()
12{
13    echo "f2 called\n";
14}
15
16function f1()
17{
18    echo "f1 called\n";
19}
20
21var_dump($o = assert_options(ASSERT_CALLBACK));
22assert(0);
23
24var_dump($o= assert_options(ASSERT_CALLBACK, "f2"));
25var_dump($n= assert_options(ASSERT_CALLBACK));
26assert(0);
27?>
28--EXPECTF--
29Deprecated: PHP Startup: assert.callback INI setting is deprecated in Unknown on line 0
30
31Deprecated: PHP Startup: assert.exception INI setting is deprecated in Unknown on line 0
32
33Deprecated: Constant ASSERT_CALLBACK is deprecated in %s on line %d
34
35Deprecated: Function assert_options() is deprecated since 8.3 in %s on line %d
36string(2) "f1"
37f1 called
38
39Warning: assert(): assert(0) failed in %s on line %d
40
41Deprecated: Constant ASSERT_CALLBACK is deprecated in %s on line %d
42
43Deprecated: Function assert_options() is deprecated since 8.3 in %s on line %d
44string(2) "f1"
45
46Deprecated: Constant ASSERT_CALLBACK is deprecated in %s on line %d
47
48Deprecated: Function assert_options() is deprecated since 8.3 in %s on line %d
49string(2) "f2"
50f2 called
51
52Warning: assert(): assert(0) failed in %s on line %d
53