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--EXPECTF-- 35Deprecated: Constant ASSERT_CALLBACK is deprecated in %s on line %d 36 37Deprecated: Function assert_options() is deprecated since 8.3 in %s on line %d 38 39Deprecated: Constant ASSERT_CALLBACK is deprecated in %s on line %d 40 41Deprecated: Function assert_options() is deprecated since 8.3 in %s on line %d 42string(2) "f1" 43foo 44assert(false) 45 46 47Deprecated: Constant ASSERT_CALLBACK is deprecated in %s on line %d 48 49Deprecated: Function assert_options() is deprecated since 8.3 in %s on line %d 50 51Deprecated: Constant ASSERT_CALLBACK is deprecated in %s on line %d 52 53Deprecated: Function assert_options() is deprecated since 8.3 in %s on line %d 54NULL 55assert(false) 56