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-- 22int(0) 23f1 called 24 25Warning: assert(): assert(0 != 0) failed in %s on line %d 26