"ERR", 0=>"INF", 1=>"DBG"); } function Error($m) {} function Warning($m) {} function Debug($m) {}'); $_REQUEST = array('task' => 'delete', 'ids' => array('1', '2')); require($root.'/web/ajax/log.php'); if ($GLOBALS['err'] !== null && !$GLOBALS['ok']) { echo "[PASS] failed delete by ids is reported: {$GLOBALS['err']}\n"; exit(0); } echo "[FAIL] failed delete by ids was answered as success\n"; exit(1);