©
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
(PHP 4, PHP 5)
sybase_min_client_severity — Sets minimum client severity
$severity
)sybase_min_client_severity() sets the minimum client severity level.
severity
没有返回值。
Note: 此函数仅适用于对 Sybase 使用 CT 库接口,而不适用于 DB 库。
[#1] sean dot healey at bayernlb dot co dot uk [2005-10-28 03:50:11]
Sybase considers severity levels 0-16 as non-fatal. Above that you probably don't want to block messages.
[#2] rudolf at 1stomni dot com [2002-02-27 12:41:58]
This parameter setup level of responce mesage filtering when you compile
--with-sybase_ct
<?php
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
<?php
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 !
[#3] [2001-10-26 14:46:42]
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.