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 설정에 영향을 받습니다.
Name | Default | Changeable | Changelog |
---|---|---|---|
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 | Removed in PHP 6.0.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.
- 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
-
Compatibility 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 compatibility 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: 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.
Name | Default | Changeable | Changelog |
---|---|---|---|
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.
- 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 define how often deadlocks are to be retried. The default is -1, or "forever".
PHP_INI_* 상수에 대한 자세한 상세와 정의는 php.ini directives를 참고하십시오.
자원형
예약 상수
이 확장은 상수를 정의하지 않습니다.
Table of Contents
- sybase_affected_rows — 가장 최근 쿼리에 의해 적용된 데이타 수를 구한다.
- sybase_close — Sybase서버로의 연결을 종료한다.
- sybase_connect — Sybase server로 연결한다.
- sybase_data_seek — move internal row pointer 내부 결과 데이타셋내의 위치 포인터를 이동한다.
- sybase_deadlock_retry_count — Sets the deadlock retry count
- sybase_fetch_array — 데이타를 배열로서 가져온다.
- sybase_fetch_assoc — Fetch a result row as an associative array
- sybase_fetch_field — 데이타 셋의 필드 정보를 얻는다.
- sybase_fetch_object — 객체타입으로 데이타를 추출한다.
- sybase_fetch_row — 배열로 데이타를 추출한다.(인덱스는 숫자 타입이다.)
- sybase_field_seek — 필드 offset(위치값)을 정한다.(이동한다.)
- sybase_free_result — 추출된 데이타가 저장된 메모리를 해제한다.
- sybase_get_last_message — 서버로부터온 최종 메세지를 반환한다.
- sybase_min_client_severity — 클라이언트의 최소 가혹 레벨을 정한다.
- sybase_min_error_severity — 최저 가혹 에러 레벨을 정한다.
- sybase_min_message_severity — 최저 메시지 가혹 레벨을 정한다.
- sybase_min_server_severity — 최저 서버 가혹 레베을 정한다.
- sybase_num_fields — 결과 데이타셋에서 필드수를 구한다.
- sybase_num_rows — 결과값의 데이타(열)수를 구한다.
- sybase_pconnect — Sybase 서버로의 영속적인(persistent) 연결을 만든다.
- sybase_query — Sybase서버에 query(쿼리)를 보낸다.
- sybase_result — 결과 데이타를 추출한다.
- sybase_select_db — 사용할 database를 선택한다.
- sybase_set_message_handler — Sets the handler called when a server message is raised
- sybase_unbuffered_query — Send a Sybase query and do not block