1--TEST-- 2assert() - basic - check that assert can be switched off 3--INI-- 4assert.active = 0 5assert.warning = 0 6assert.callback = f1 7assert.bail = 0 8assert.quiet_eval = 0 9--FILE-- 10<?php 11function f1() 12{ 13 echo "f1 called\n"; 14} 15 16//String assert 17$sa = "0 != 0"; 18var_dump($r2=assert($sa)); 19$sa = "0 == 0"; 20var_dump($r2=assert($sa)); 21 22//Non string assert 23var_dump($r2=assert(0)); 24var_dump($r2=assert(1)); 25--EXPECTF-- 26bool(true) 27bool(true) 28bool(true) 29bool(true) 30