assert_options(ASSERT_ACTIVE, true);//允許使用assert()函數
assert_options(ASSERT_WARNING, false);//在assert失敗時不輸出警告信息
assert_options(ASSERT_BAIL, true);//assert失敗后終止代碼執行
assert_options(ASSERT_CALLBACK, 'getMsg');//assert失敗后終止代碼執行。
echo '開始:<br/>';
assert('
echo '測試成功!';
function getMsg(){
echo '出錯啦!';
}
if(!extension_loaded('sqlite')){//測試指定的擴展是否已經激活
$
prefix = (PHP_SHLIB_SUFFIX === 'dll') ? '
dl($prefix . 'sqlite.' . PHP_SHLIB_SUFFIX);
}
print_r(get_extension_funcs("