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 9error_reporting = -1 10display_errors = 1 11--FILE-- 12<?php 13function f1($script, $line, $message, $user_message) 14{ 15 echo "f1 called\n"; 16} 17 18//bail out on error 19var_dump($rao = assert_options(ASSERT_BAIL, 1)); 20var_dump($r2 = assert(0 != 0)); 21echo "If this is printed BAIL hasn't worked"; 22?> 23--EXPECTF-- 24int(0) 25f1 called 26 27Warning: assert(): assert(0 != 0) failed in %s on line %d 28