/** * Before class method: set minimun server severity; * otherwise server messages end up on the error stack * and will let the test fail (no error policy). */ public function setUp() { parent::setUp(); if (function_exists('sybase_min_server_severity')) { sybase_min_server_severity(12); } }
/** * Constructor * * @return PMF_DB_Sybase */ public function __construct() { if (function_exists('sybase_min_client_severity')) { sybase_min_client_severity(100); } if (function_exists('sybase_min_server_severity')) { sybase_min_server_severity(9); } if (function_exists('sybase_min_error_severity')) { sybase_min_error_severity(9); } if (function_exists('sybase_min_message_severity')) { sybase_min_message_severity(9); } }
public static function setMinimumServerSeverity() { if (function_exists('sybase_min_server_severity')) { sybase_min_server_severity(12); } }
<?php sybase_min_server_severity(20); /********************************************************************** * Author: Muhammad Iyas (iyasilias@gmail.com) * Web...: * Name..: ezSQL_sybase * Desc..: Sybase ASE component (part of ezSQL database abstraction library) - based on ezSql_mssql library class. * */ /********************************************************************** * ezSQL error strings - sybase */ $ezsql_sybase_str = array(1 => 'Require $dbuser and $dbpassword to connect to a database server', 2 => 'Error establishing sybase database connection. Correct user/password? Correct hostname? Database server running?', 3 => 'Require $dbname to select a database', 4 => 'SQL Server database connection is not active', 5 => 'Unexpected error while trying to select database'); /********************************************************************** * ezSQL Database specific class - sybase */ if (!function_exists('sybase_connect')) { die('<b>Fatal Error:</b> ezSQL_sybase requires ntwdblib.dll to be present in your winowds\\system32 folder. Also enable sybase extenstion in PHP.ini file '); } if (!class_exists('ezSQLcore')) { die('<b>Fatal Error:</b> ezSQL_sybase requires ezSQLcore (ez_sql_core.php) to be included/loaded before it can be used'); } class ezSQL_sybase extends ezSQLcore { var $dbuser = false; var $dbpassword = false; var $dbname = false; var $dbhost = false; //if we want to convert Queries in MySql syntax to Sybase syntax. Yes, there //are some differences in query syntax.
/** * Before class method: set minimun server severity; * otherwise server messages end up on the error stack * and will let the test fail (no error policy). * */ public function setUp() { parent::setUp(); sybase_min_server_severity(12); }