1--TEST-- 2misc assert() tests tests 3--INI-- 4assert.active = 1 5assert.warning = 1 6assert.callback = 7assert.bail = 0 8assert.exception=0 9--FILE-- 10<?php 11/* Assert not active */ 12assert_options(ASSERT_ACTIVE, 0); 13assert(1); 14 15/* Wrong parameter count in assert */ 16assert_options(ASSERT_ACTIVE, 1); 17 18/* Assert false */ 19assert(0); 20 21 22/* Assert false and bail*/ 23assert_options(ASSERT_BAIL, 1); 24assert(0); 25 26echo "not reached\n"; 27 28?> 29--EXPECTF-- 30Deprecated: PHP Startup: assert.exception INI setting is deprecated in Unknown on line 0 31 32Deprecated: Constant ASSERT_ACTIVE is deprecated in %s on line %d 33 34Deprecated: Function assert_options() is deprecated in %s on line %d 35 36Deprecated: Constant ASSERT_ACTIVE is deprecated in %s on line %d 37 38Deprecated: Function assert_options() is deprecated in %s on line %d 39 40Warning: assert(): assert(0) failed in %s on line %d 41 42Deprecated: Constant ASSERT_BAIL is deprecated in %s on line %d 43 44Deprecated: Function assert_options() is deprecated in %s on line %d 45 46Warning: assert(): assert(0) failed in %s on line %d 47