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--
29string(2) "f1"
30f1 called
31
32Warning: assert(): assert(0) failed in %s on line 13
33string(2) "f1"
34string(2) "f2"
35f2 called
36
37Warning: assert(): assert(0) failed in %s on line 17
38