PHP 手冊
上一頁 |  | 下一頁

# CXI.Sybase Functions

# 介紹

# 需求

# 安裝

To enable Sybase-DB support configure PHP --with-sybase[=DIR]. DIR is the Sybase home directory, defaults to `/home/sybase`. To enable Sybase-CT support configure PHP --with-sybase-ct[=DIR]. DIR is the Sybase home directory, defaults to `/home/sybase`.

# 執行時期組態

`php.ini`中的設定會影響這些函數的行為。

表格 1.Sybase configuration options

Name | Default | Changeable
--- | --- | ---
sybase.allow_persistent | "On" | PHP_INI_SYSTEM
sybase.max_persistent | "-1" | PHP_INI_SYSTEM
sybase.max_links | "-1" | PHP_INI_SYSTEM
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 | "Off" | PHP_INI_SYSTEM
magic_quotes_sybase | "Off" | PHP_INI_ALL

這裡為簡短的結構指令說明。

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.

sybase.max_links integer

  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.

sybase.compatability_mode boolean

  Compatability mode with old versions of PHP 3.0. If on, this will cause PHP to automatically assign types to results according to their Sybase type, instead of treating them all as strings. This compatability mode will probably not stay around forever, so try applying whatever necessary changes to your code, and turn it off.

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.

  > 備注: 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.

表格 2.Sybase-CT configuration options

Name | Default | Changeable
--- | --- | ---
sybct.allow_persistent | "On" | PHP_INI_SYSTEM
sybct.max_persistent | "-1" | PHP_INI_SYSTEM
sybct.max_links | "-1" | PHP_INI_SYSTEM
sybct.min_server_severity | "10" | PHP_INI_ALL
sybct.min_client_severity | "10" | PHP_INI_ALL
sybct.hostname | NULL | PHP_INI_ALL
sybct.deadlock_retry_count | "-1" | PHP_INI_ALL

這裡為簡短的結構指令說明。

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.

sybct.max_links integer

  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 to define how often deadlocks are to be retried. The default is -1, or "forever".

For further details and definition of the PHP_INI_* constants see ini_set().

# 資源類型

# 預先定義常數

這個延伸沒有定義任何常數。

上一頁 | 最開頭 | 下一頁
wordwrap | 上一層 | sybase_affected_rows