- PHP 手册
- 函数参考
- 数据库扩展
- 针对各数据库系统对应的扩展
- Sybase
- Sybase 函数
sybase_min_client_severity
(PHP 4, PHP 5)
sybase_min_client_severity — Sets minimum client severity
WarningThis function was REMOVED in PHP 7.0.0.
说明
sybase_min_client_severity ( int$severity
) : void
sybase_min_client_severity() sets the minimum client severity level.
参数
-
severity
-
返回值
没有返回值。
注释
Note: 此函数仅适用于对 Sybase 使用 CT 库接口,而不适用于 DB 库。
参见
- sybase_min_server_severity() - Sets minimum server severity
User Contributed Notes 3 notes
up down 0 sean dot healey at bayernlb dot co dot uk ¶13 years ago
Sybase considers severity levels 0-16 as non-fatal. Above that you probably don't want to block messages.
up
down
-1
rudolf at 1stomni dot com ¶17 years ago
This parameter setup level of responce mesage filtering when you compile
--with-sybase_ct
<?
sybase_min_client_severity(9);
sybase_min_server_severity(9);
$db=sybase_connect("mdserver","sa","");
?>
Will result:
Warning: Sybase: Server message: Changed database context to 'master'.
(severity 10, procedure N/A) in
/var/www/html/DBAdmins/phpSybaseAdmin/test.php on line 4
<?
sybase_min_client_severity(100);
sybase_min_server_severity(100);
$db=sybase_connect("mdserver","sa","");
?>
Will not generate warning!!!
Can be used for SYBASE debugging !
up
down
-1
Anonymous ¶17 years ago
The severity levels mentioned here are referenced in the Sybase System Administration documentation. I didn't know that, and it annoyed me. Now you know.
add a note
官方地址:https://www.php.net/manual/en/function.sybase-min-client-severity.php