1--TEST--
2assert() - Remove the assert callback
3--INI--
4assert.active=1
5--FILE--
6<?php
7
8function f1()
9{
10    echo "foo\n";
11}
12
13assert_options(ASSERT_CALLBACK, "f1");
14var_dump(assert_options(ASSERT_CALLBACK));
15
16try {
17    assert(false);
18} catch (AssertionError $exception) {
19    echo $exception->getMessage() . "\n";
20}
21
22echo "\n";
23
24assert_options(ASSERT_CALLBACK, null);
25var_dump(assert_options(ASSERT_CALLBACK));
26
27try {
28    assert(false);
29} catch (AssertionError $exception) {
30    echo $exception->getMessage() . "\n";
31}
32
33?>
34--EXPECT--
35string(2) "f1"
36foo
37assert(false)
38
39NULL
40assert(false)
41