執行時期設定

這些函式的行為受 php.ini 的影響。

Sybase configuration options
名字 預設 可修改範圍 更新日誌
sybase.allow_persistent "1" PHP_INI_ALL PHP_INI_ALL in PHP <= 4.0.2. PHP_INI_SYSTEM in PHP <= 4.0.3.
sybase.max_persistent "-1" PHP_INI_ALL PHP_INI_ALL in PHP <= 4.0.2. PHP_INI_SYSTEM in PHP <= 4.0.3.
sybase.max_links "-1" PHP_INI_ALL PHP_INI_ALL in PHP <= 4.0.2. PHP_INI_SYSTEM in PHP <= 4.0.3.
sybase.interface_file "/usr/sybase/interfaces" PHP_INI_SYSTEM  
sybase.min_error_severity "10" PHP_INI_ALL  
sybase.min_message_severity "10" PHP_INI_ALL  
sybase.compatability_mode "0" PHP_INI_ALL  
magic_quotes_sybase "0" PHP_INI_ALL Deprecated in PHP 5.3.0. Removed in PHP 5.4.0.

以下是設定選項的簡要解釋。

sybase.allow_persistent boolean

Whether to allow persistent Sybase connections.

sybase.max_persistent integer

The maximum number of persistent Sybase connections per process. -1 means no limit.

The maximum number of Sybase connections per process, including persistent connections. -1 means no limit.

sybase.min_error_severity integer

Minimum error severity to display.

sybase.min_message_severity integer

Minimum message severity to display.

magic_quotes_sybase boolean

If magic_quotes_sybase is on, a single-quote is escaped with a single-quote instead of a backslash if magic_quotes_gpc or magic_quotes_runtime are enabled. This setting is also respected by addslashes() and stripslashes().

Note:

Note that when magic_quotes_sybase is ON it completely overrides magic_quotes_gpc . In this case even when magic_quotes_gpc is enabled neither double quotes, backslashes or NUL's will be escaped.

Warning

本功能已自 PHP 5.3.0 起廢棄並將自 PHP 5.4.0 起移除

Sybase-CT configuration options
名字 預設 可修改範圍 更新日誌
sybct.allow_persistent "1" PHP_INI_SYSTEM PHP_INI_ALL in PHP <= 4.0.2. Available since PHP 4.0.2. Removed in PHP 4.0.3.
sybct.max_persistent "-1" PHP_INI_SYSTEM PHP_INI_ALL in PHP <= 4.0.2. Available since PHP 4.0.2. Removed in PHP 4.0.3.
sybct.max_links "-1" PHP_INI_SYSTEM PHP_INI_ALL in PHP <= 4.0.2. Available since PHP 4.0.2. Removed in PHP 4.0.3.
sybct.min_server_severity "10" PHP_INI_ALL Available since PHP 4.0.2. Removed in PHP 4.0.3.
sybct.min_client_severity "10" PHP_INI_ALL Available since PHP 4.0.2. Removed in PHP 4.0.3.
sybct.hostname NULL PHP_INI_ALL Available since PHP 4.0.2. Removed in PHP 4.0.3.
sybct.deadlock_retry_count "0" PHP_INI_ALL Available since PHP 4.3.0.

以下是設定選項的簡要解釋。

sybct.allow_persistent boolean

Whether to allow persistent Sybase-CT connections. The default is on.

sybct.max_persistent integer

The maximum number of persistent Sybase-CT connections per process. The default is -1 meaning unlimited.

The maximum number of Sybase-CT connections per process, including persistent connections. The default is -1 meaning unlimited.

sybct.min_server_severity integer

Server messages with severity greater than or equal to sybct.min_server_severity will be reported as warnings. This value can also be set from a script by calling sybase_min_server_severity(). The default is 10 which reports errors of information severity or greater.

sybct.min_client_severity integer

Client library messages with severity greater than or equal to sybct.min_client_severity will be reported as warnings. This value can also be set from a script by calling sybase_min_client_severity(). The default is 10 which effectively disables reporting.

sybct.login_timeout integer

The maximum time in seconds to wait for a connection attempt to succeed before returning failure. Note that if max_execution_time has been exceeded when a connection attempt times out, your script will be terminated before it can take action on failure. The default is one minute.

sybct.timeout integer

The maximum time in seconds to wait for a select_db or query operation to succeed before returning failure. Note that if max_execution_time has been exceeded when an operation times out, your script will be terminated before it can take action on failure. The default is no limit.

sybct.hostname string

The name of the host you claim to be connecting from, for display by sp_who. The default is none.

sybct.deadlock_retry_count int

Allows you to define how often deadlocks are to be retried. The default is 0, value -1 means "forever".

有關 PHP_INI_* 常數進一步的細節與定義參見Where a configuration setting may be set

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top