Modified: phpdoc/ja/trunk/reference/nis/configure.xml =================================================================== --- phpdoc/ja/trunk/reference/nis/configure.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/nis/configure.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,11 +1,11 @@ - -
+ +
&reftitle.install; - これらの関数が動作するためには、configure を実行する際に - を付ける必要があります。 + &pecl.info.dead; + &url.pecl.vcs;yp
Modified: phpdoc/ja/trunk/reference/notes/book.xml =================================================================== --- phpdoc/ja/trunk/reference/notes/book.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/notes/book.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + @@ -12,18 +12,6 @@ &reftitle.intro; - - - &pecl.moved-ver;5.0.0. - &pecl.info; - &url.pecl.package;notes. - - - - - この拡張モジュールは現在サポートされていません。メンテナを募集中です。 - - &warn.experimental; Modified: phpdoc/ja/trunk/reference/notes/setup.xml =================================================================== --- phpdoc/ja/trunk/reference/notes/setup.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/notes/setup.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + @@ -16,7 +16,13 @@
&reftitle.install; - &no.install; + + &pecl.info.dead; + &url.pecl.vcs;notes. + + + &pecl.moved-ver;5.0.0 +
Modified: phpdoc/ja/trunk/reference/oauth/functions/oauth-get-sbs.xml =================================================================== --- phpdoc/ja/trunk/reference/oauth/functions/oauth-get-sbs.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/oauth/functions/oauth-get-sbs.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + @@ -14,7 +14,7 @@ stringoauth_get_sbs stringhttp_method stringuri - arrayrequest_parameters + arrayrequest_parameters pecl/oauth に関するSBSを生成します Modified: phpdoc/ja/trunk/reference/oauth/functions/oauth-urlencode.xml =================================================================== --- phpdoc/ja/trunk/reference/oauth/functions/oauth-urlencode.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/oauth/functions/oauth-urlencode.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,11 +1,11 @@ - + oauth_urlencode - URI を RFC3686 形式でエンコードする + URI を RFC 3686 形式でエンコードする @@ -15,7 +15,7 @@ stringuri - URI を RFC3686 形式でエンコードします。 + URI を RFC 3686 形式でエンコードします。 @@ -38,7 +38,7 @@ &reftitle.returnvalues; - RFC3686 形式でエンコードした文字列を返します。 + RFC 3686 形式でエンコードした文字列を返します。 Modified: phpdoc/ja/trunk/reference/oauth/oauth/construct.xml =================================================================== --- phpdoc/ja/trunk/reference/oauth/oauth/construct.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/oauth/oauth/construct.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + @@ -15,7 +15,7 @@ stringconsumer_key stringconsumer_secret stringsignature_method - stringauth_type + intauth_type0 新しい OAuth オブジェクトを作成します。 Modified: phpdoc/ja/trunk/reference/oauth/oauth/fetch.xml =================================================================== --- phpdoc/ja/trunk/reference/oauth/oauth/fetch.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/oauth/oauth/fetch.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + @@ -14,7 +14,7 @@ public boolOAuth::fetch stringprotected_resource_url arrayextra_parameters - inthttp_method + stringhttp_method arrayhttp_headers Modified: phpdoc/ja/trunk/reference/oauth/oauth/getaccesstoken.xml =================================================================== --- phpdoc/ja/trunk/reference/oauth/oauth/getaccesstoken.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/oauth/oauth/getaccesstoken.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,11 +1,11 @@ - + OAuth::getAccessToken - getAccessToken + アクセストークンを取得する @@ -106,7 +106,7 @@ try { $oauth = new OAuth(OAUTH_CONSUMER_KEY,OAUTH_CONSUMER_SECRET); $oauth->setToken($request_token,$request_token_secret); - $access_token_info = $oauth->getRequestToken("https://example.com/oauth/access_token"); + $access_token_info = $oauth->getAccessToken("https://example.com/oauth/access_token"); if(!empty($access_token_info)) { print_r($access_token_info); } else { Modified: phpdoc/ja/trunk/reference/oauth/oauth/getrequesttoken.xml =================================================================== --- phpdoc/ja/trunk/reference/oauth/oauth/getrequesttoken.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/oauth/oauth/getrequesttoken.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + @@ -13,7 +13,7 @@ public arrayOAuth::getRequestToken stringrequest_token_url - stringcallback_url + stringcallback_url リクエストトークン、secret そして追加のレスポンスパラメータをサービスプロバイダから取得します。 Modified: phpdoc/ja/trunk/reference/oauth/oauth/setauthtype.xml =================================================================== --- phpdoc/ja/trunk/reference/oauth/oauth/setauthtype.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/oauth/oauth/setauthtype.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,18 +1,18 @@ - + OAuth::setAuthType - setAuthType + 認証方式を設定する &reftitle.description; public boolOAuth::setAuthType - stringauth_type + intauth_type OAuth パラメータをどこで渡すかを設定します。 Modified: phpdoc/ja/trunk/reference/oauth/oauth.xml =================================================================== --- phpdoc/ja/trunk/reference/oauth/oauth.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/oauth/oauth.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + OAuth クラス @@ -33,7 +33,7 @@ - メソッド + &Methods; Modified: phpdoc/ja/trunk/reference/oauth/oauthexception.xml =================================================================== --- phpdoc/ja/trunk/reference/oauth/oauthexception.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/oauth/oauthexception.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + @@ -38,13 +38,13 @@ - プロパティ + &Properties; public lastResponse - 継承したメソッド + &InheritedMethods; Modified: phpdoc/ja/trunk/reference/objaggregation/book.xml =================================================================== --- phpdoc/ja/trunk/reference/objaggregation/book.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/objaggregation/book.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,13 +1,13 @@ - + - オブジェクトの集約/合成 + オブジェクトの集約/合成 [PHP 4] Object Aggregation Modified: phpdoc/ja/trunk/reference/objaggregation/functions/aggregate-methods-by-list.xml =================================================================== --- phpdoc/ja/trunk/reference/objaggregation/functions/aggregate-methods-by-list.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/objaggregation/functions/aggregate-methods-by-list.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + aggregate_methods_by_list @@ -16,7 +16,7 @@ objectobject stringclass_name arraymethods_list - boolexclude + boolexcludefalse メソッド名のリストを使用して、クラスのメソッドを既存のオブジェクトに集約します。 @@ -58,7 +58,7 @@ オプションのパラメータ exclude で、リストに含まれているメソッドを集約する - (exclude が &false; の場合。これがデフォルトです) + (exclude が &false;) のか含まれていないメソッドを集約する (exclude が &true;) のかを指定します。 Modified: phpdoc/ja/trunk/reference/objaggregation/functions/aggregate-methods-by-regexp.xml =================================================================== --- phpdoc/ja/trunk/reference/objaggregation/functions/aggregate-methods-by-regexp.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/objaggregation/functions/aggregate-methods-by-regexp.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + aggregate_methods_by_regexp @@ -17,7 +17,7 @@ objectobject stringclass_name stringregexp - boolexclude + boolexcludefalse クラスのメソッドを既存のオブジェクトに集約します。 @@ -60,7 +60,7 @@ オプションのパラメータ exclude で、正規表現にマッチするメソッドを集約する - (exclude が &false; の場合。これがデフォルトです) + (exclude が &false;) のかマッチしないメソッドを集約する (exclude が &true;) のかを指定します。 Modified: phpdoc/ja/trunk/reference/objaggregation/functions/aggregate-properties-by-list.xml =================================================================== --- phpdoc/ja/trunk/reference/objaggregation/functions/aggregate-properties-by-list.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/objaggregation/functions/aggregate-properties-by-list.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + aggregate_properties_by_list @@ -16,7 +16,7 @@ objectobject stringclass_name arrayproperties_list - boolexclude + boolexcludefalse プロパティ名のリストを使用して、クラスのプロパティを既存のオブジェクトに集約します。 @@ -58,7 +58,7 @@ オプションのパラメータ exclude で、リストに含まれているプロパティを集約する - (exclude が &false; の場合。これがデフォルトです) + (exclude が &false;) のか含まれていないプロパティを集約する (exclude が &true;) のかを指定します。 Modified: phpdoc/ja/trunk/reference/objaggregation/functions/aggregate-properties-by-regexp.xml =================================================================== --- phpdoc/ja/trunk/reference/objaggregation/functions/aggregate-properties-by-regexp.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/objaggregation/functions/aggregate-properties-by-regexp.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + aggregate_properties_by_regexp @@ -17,7 +17,7 @@ objectobject stringclass_name stringregexp - boolexclude + boolexcludefalse クラスのプロパティを既存のオブジェクトに集約します。集約するプロパティを @@ -60,7 +60,7 @@ オプションのパラメータ exclude で、正規表現にマッチするプロパティを集約する - (exclude が &false; の場合。これがデフォルトです) + (exclude が &false;) のかマッチしないプロパティを集約する (exclude が &true;) のかを指定します。 Modified: phpdoc/ja/trunk/reference/oci8/connection.xml =================================================================== --- phpdoc/ja/trunk/reference/oci8/connection.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/oci8/connection.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,65 +1,405 @@ - + 接続のハンドリング - - oci8 拡張モジュールは Oracle に接続するための 3 - つの異なる関数を提供しています。 - アプリケーションに最適な関数を使用するのはあなた次第です。 - また、このセクションにある情報は、 - インフォームド・チョイス (十分な説明を受けよく考えた上での選択) - を行う助けになることを目的としています。 - - - Oracle サーバへの接続は、完了まで要する時間という点から見ると、 - かなりコストのかかる操作です。oci_pconnect 関数は、 - 異なるスクリプトリクエスト間で接続の再利用が可能な - 持続的キャッシュを使用します。 - これは、PHP プロセス (もしくは Apache の子プロセス) - 毎の接続に関するオーバーヘッドを一度のみ負うということを意味しています。 - - - もしアプリケーションが信用された異なる Web ユーザー毎に - Oracle に接続する場合、oci_pconnect - による持続的キャッシュは、 - 同時ユーザー数の増加と共に有効ではなくなるでしょう。 - これは、多くのアイドル状態の接続が維持されることが原因で、 - Oracle サーバ全体のパフォーマンスに不利な影響を与え始めるためです。 - もしアプリケーションがこの方法で構成されている場合、 - oci8.max_persistent や oci8.persistent_timeout - (持続的接続のキャッシュサイズや生存期間の制御が可能になります) - を使用してアプリケーションをチューニングする、もしくは代わりに - oci_connect を使用することが推奨されます。 - - - oci_connect と oci_pconnect - の両者とも接続キャッシュを使用します。もし、同一パラメータと共に - oci_connect を複数回コールする場合、 - 2 番目以降は既存の接続ハンドルを返します。oci_connect - によって使用されるキャッシュは、スクリプト実行終了時、 - もしくは明示的に接続ハンドルを閉じた時にクリアされます。 - oci_pconnect も同様の動作をしますが、 - キャッシュは独立して維持され、リクエスト間で残存します。 - - - このキャッシュ機能は忘れてはならないほど重要です。 - それは、2 つのハンドルがトランザクション的に独立していない - (実際には同じ接続なので、どのような種類の独立もありません) - ためです。もしアプリケーションが 2 - つの別々でトランザクション的に独立した接続を必要とする場合、 - oci_new_connect を使用すべきです。 - - - oci_new_connect は、他の既存の接続が存在したとしても - 常に Oracle サーバへの新規接続を生成します。 - 特にアプリケーションの最も負荷が高い部分など、 - 高トラフィックな Web アプリケーションに対しては - oci_new_connect の使用を避けてください。 - +
+ 接続関数 + + oci8 拡張モジュールは Oracle に接続するための 3 + つの異なる関数を提供しています。標準の接続関数は + oci_connect です。これは Oracle データベースへの接続を作成し、 + それ以降のデータベースで使うリソースを返します。 + + + Oracle サーバへの接続は、完了まで要する時間という点から見ると、 + かなりコストのかかる操作です。oci_pconnect 関数は、 + 異なるスクリプトリクエスト間で接続の再利用が可能な + 持続的キャッシュを使用します。 + これは、PHP プロセス (もしくは Apache の子プロセス) + 毎の接続に関するオーバーヘッドを一度のみ負うということを意味しています。 + + + もしアプリケーションが信用された異なる Web ユーザー毎に + Oracle に接続する場合、oci_pconnect + による持続的キャッシュは、 + 同時ユーザー数の増加と共に有効ではなくなるでしょう。 + これは、多くのアイドル状態の接続が維持されることが原因で、 + Oracle サーバ全体のパフォーマンスに不利な影響を与え始めるためです。 + もしアプリケーションがこの方法で構成されている場合、 + oci8.max_persistent や oci8.persistent_timeout + (持続的接続のキャッシュサイズや生存期間の制御が可能になります) + を使用してアプリケーションをチューニングする、もしくは代わりに + oci_connect を使用することが推奨されます。 + + + oci_connect と oci_pconnect + の両者とも接続キャッシュを使用します。もし、同一パラメータと共に + oci_connect を複数回コールする場合、 + 2 番目以降は既存の接続ハンドルを返します。oci_connect + によって使用されるキャッシュは、スクリプト実行終了時、 + もしくは明示的に接続ハンドルを閉じた時にクリアされます。 + oci_pconnect も同様の動作をしますが、 + キャッシュは独立して維持され、リクエスト間で残存します。 + + + このキャッシュ機能は忘れてはならないほど重要です。 + それは、2 つのハンドルがトランザクション的に独立していない + (実際には同じ接続なので、どのような種類の独立もありません) + ためです。もしアプリケーションが 2 + つの別々でトランザクション的に独立した接続を必要とする場合、 + oci_new_connect を使用すべきです。 + + + The oci_pconnect cache is cleared and any + database connections closed when the PHP process terminates, so + effective use of persistent connections requires that PHP be an + Apache module or used with FGCI, or similar. Persistent connections + will not have any benefits over oci_connect + when PHP is used with CGI or via the command-line. + + + oci_new_connect は、他の既存の接続が存在したとしても + 常に Oracle サーバへの新規接続を生成します。 + 特にアプリケーションの最も負荷が高い部分など、 + 高トラフィックな Web アプリケーションに対しては + oci_new_connect の使用を避けてください。 + +
+
+ DRCP Connection Pooling + + PHP 5.3 (PECL OCI8 1.3) supports Oracle 11g Database Resident + Connection Pooling (DRCP). DRCP allows more efficient use of + database machine memory and provides high scalability. No, or + minimal, application changes are needed to use DRCP. + + + DRCP is suited for applications that connect using few database + schemas and hold database connections open for a short period of + time. Other applications should use Oracle's + default Dedicated database server processes, or + use Shared servers. + + + DRCP benefits all three connection functions, but gives the highest + scalability when connections are created + with oci_pconnect. + + + For DRCP to be available in OCI8, Oracle client libraries used by + PHP and the version of the Oracle Database must both be 11g. + + + Documentation on DRCP is found in several Oracle manuals. For + example, + see Configuring + Database Resident Connection Pooling in the Oracle + documentation for usage information. + A DRCP + white paper contains background information on DRCP. + + + To use DRCP, build PHP with the OCI8 1.3 extension and Oracle 11g + libraries and then follow these steps: + + + + + + As a privileged database administrator, use a program like + SQL*Plus to start the connection pool in the database: + + + + + execute dbms_connection_pool.start_pool; +]]> + + + + + + + Optionally + use dbms_connection_pool.alter_param() to + configure DRCP settings. The current pool settings can be + queried from the DBA_CPOOL_INFO view. + + + + + Update the connection strings used. For PHP applications that + currently connect using a Network Connect Name + like MYDB: + + + + + + + + + + modify the tnsnames.ora file and add + a (SERVER=POOLED) clause, for example: + + + + + + + + + + Alternatively, modify the Easy Connect syntax in PHP and add + :POOLED after the service name: + + + + + + + + + + + + Edit &php.ini; and choose a connection class name. This name + indicates a logical division of the connection pool and can be + used to isolate pooling for separate applications. Any PHP + applications with the same user name and connection class value + will be able to share connections in the pool, giving greater + scalability. + + + + + + + + + + + + Run the application, connecting to the 11g database. + + + + + + + Applications using Oracle 10g that require the performance of + persistent connections can reduce the amount of database server + memory needed by using Oracle Shared servers + (previously known as Multi Threaded Servers). Refer to Oracle + documentation for information. + + +
+
+ DRCP Recommendations and Known Limitations + + Changing a password over DRCP connections will fail with the error + ORA-56609: Usage not supported with DRCP. + This is a documented restriction of Oracle Database 11g. + + + With the OCI8 1.3 extension, persistent connections can now be + closed by the user, allowing greater control over connection + resource usage. Persistent connections will now also be closed + automatically when there is no PHP variable referencing them, such + as at the end of scope of a PHP user function. This will rollback + any uncommitted transaction. These changes to persistent + connections make them behave similarly to non-persistent + connections, simplifying the interface, allowing for greater + application consistency and predictability. + Use oci8.old_oci_close_semantics + set to + On to retain the historical behavior. + + + If the Oracle Database is version 11.1.0.6, then the Oracle + database patch for Oracle bug 6474441 must be applied to use DRCP. + Without this patch, errors such as ORA-01000: maximum + open cursors exceeded, ORA-01001 invalid + cursor or ORA-01002 fetch out of + sequence may occur. This bug was fixed in Oracle + 11.1.0.7 onwards. + + + If the Oracle 11.1.0.6 database patch cannot be applied, one of the + following three workarounds can be used instead: + + + + + + Connect using Oracle Dedicated + or Shared servers instead of DRCP. + + + + + Set PHP's oci8.statement_cache_size + to 0. + + + + + Set an event in the database initialization parameter file: + event="56699 trace name context forever, level 128". + + + + + + Oracle Database 11.1.0.7 and the Oracle Database 11.1.0.6 patch for + Oracle bug 6474441 allow PHP applications with DRCP connection to + use a database LOGON trigger to set session + properties at the time of session creation. Examples of such + settings are the NLS language and the date format. + + + If the Oracle 11.1.0.6 database patch cannot be applied, one of the + following workarounds can be used instead + of using LOGON triggers: + + + + + + After logon, explicitly set the session properties using PHP + application code. + + + + + Connect using Oracle Dedicated + or Shared servers instead of DRCP. + + + + + + The automatic re-establishment of PHP persistent connections after + an Apache or FGCI process respawns means LOGON + triggers in PHP are only recommended for setting session attributes + and not for per-application user connection requests. This is even + more so with DRCP due to the automatic pool sizing and with the + way LOGON triggers fire with DRCP + authentication. + +
+
+ Fast Application Notification (FAN) Support + + FAN support gives fast connection failover, a high availability + feature. This allows PHP OCI8 scripts to be notified when a + database machine or database instance becomes unavailable. Without + FAN, OCI8 can hang until a TCP timeout occurs and an error is + returned, which might be several minutes. Enabling FAN in OCI8 can + allow applications to detect errors and re-connect to an available + database instance without the web user being aware of an outage. + + + FAN support is available when the Oracle client libraries that PHP + links with and the Oracle Database are either version 10gR2 or 11g. + + + FAN benefits users of Oracle's clustering technology (RAC) because + connections to surviving database instances can be immediately + made. Users of Oracle's Data Guard with a broker will see the FAN + events generated when the standby database goes online. Standalone + databases will send FAN events when the database restarts. + + + For active connections, when a machine or database instance becomes + unavailable, a connection failure error will be returned by the + OCI8 extension function currently being called. On a subsequent + PHP script re-connect, a connection to a surviving database + instance will be established. The OCI8 extension also + transparently cleans up any idle connections affected by a database + machine or instance failure so PHP connect calls will establish a + fresh connection without the script being aware of any service + disruption. + + + When oci8.events + is On, it is suggested to + set oci8.ping_interval + to -1 to disable pinging, since enabling FAN events provide + pro-active connection management of idle connections made invalid + by a service disruption. + + + To enable FAN support in PHP, build PHP with Oracle 10gR2 or 11g + libraries and then follow these steps: + + + + + + As a privileged database administrator, use a program like + SQL*Plus to enable the database service to post FAN events, for + example: + + + + + execute dbms_service.modify_service( + SERVICE_NAME => 'sales', + AQ_HA_NOTIFICATIONS => TRUE); +]]> + + + + + + + Edit php.ini and add + + + + + + + + + + + + If the application does not already handle OCI8 error + conditions, modify it to detect failures and take appropriate + action. This may include re-connecting and re-executing + statements. + + + + + Run the application, connecting to an Oracle 10gR2 or 11g database. + + + + +
- + &reftitle.examples; -
+ + These examples connect as the HR user, which is + the sample "Human Resources" schema supplied with the + Oracle database. The account may need to be unlocked and the + password reset before you can use it. + + + + The examples connect to the XE database on your + machine. Change the connect string to your database before running + the examples. + + + + 基本的なクエリ - - 基本的なクエリ - + This shows querying and displaying results. Statements in OCI8 use + a prepare-execute-fetch sequence of steps. + + '; - while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS)) { - print ''; - foreach ($row as $item) { - print ''.($item?htmlentities($item):' ').''; - } - print ''; - } - print ''; +// Fetch the results of the query +print "\n"; +while ($row = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS)) { + print "\n"; + foreach ($row as $item) { + print " \n"; + } + print "\n"; +} +print "
" . ($item !== null ? htmlentities($item, ENT_QUOTES) : " ") . "
\n"; - oci_close($conn); +oci_free_statement($stid); +oci_close($conn); + ?> ]]> -
-
+ + + + + バインド変数を用いた挿入 + + Bind variables improve performance by allowing reuse of execution + contexts and caches. Bind variables improve security by preventing + some kinds of SQL Injection problems. - - - バインド変数を用いた挿入 - + ]]> - - - + + - + + CLOB カラムにデータを挿入する - - CLOB カラムにデータを挿入する - + For large data use binary long object (BLOB) or character long + object (CLOB) types. This example uses CLOB. + + save("A very long string"); oci_commit($conn); @@ -120,47 +148,160 @@ $stid = oci_parse ($conn, $query); oci_bind_by_name($stid, ":mykey", $mykey, 5); -oci_execute($stid, OCI_DEFAULT); +oci_execute($stid); print ''; while ($row = oci_fetch_array($stid, OCI_ASSOC)) { - $result = $row['MYCLOB']->load(); - print ''; + $result = $row['MYCLOB']->load(); + print ''; } print '
'.$result.'
'.$result.'
'; ?> ]]> -
-
+ + + + + Using a PL/SQL stored function + + You must bind a variable for the return value and optionally for + any PL/SQL function arguments. + + +]]> + + + + + Using a PL/SQL stored procedure - コマンドラインで実行するのと同様な手法により、ストアドプロシージャ - に簡単にアクセス可能です。 - - ストアドプロシージャの使用法 - + With stored procedures, you should bind variables for any arguments. + + ]]> - - + + + + + Calling a PL/SQL function that returns a <literal>REF CURSOR</literal> + + Each returned value from the query is a REF + CURSOR that can be fetched from. -
+ +\n"; +while (($row = oci_fetch_array($stid, OCI_ASSOC))) { + echo "\n"; + $rc = $row['MFRC']; + oci_execute($rc); // returned column value from the query is a ref cursor + while (($rc_row = oci_fetch_array($rc, OCI_ASSOC))) { + echo " " . $rc_row['CITY'] . "\n"; + } + oci_free_statement($rc); + echo "\n"; +} +echo "\n"; + +// Output is: +// Beijing +// Bern +// Bombay +// Geneva + +oci_free_statement($stid); +oci_close($conn); + +?> +]]> + +
- + openal_buffer_get @@ -47,7 +47,7 @@ &reftitle.returnvalues; 要求された property の値を整数で返します。 - 失敗した場合には &false; を返します。 + &return.falseforfailure;。
Modified: phpdoc/ja/trunk/reference/openal/functions/openal-listener-get.xml =================================================================== --- phpdoc/ja/trunk/reference/openal/functions/openal-listener-get.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/openal/functions/openal-listener-get.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + openal_listener_get @@ -35,8 +35,8 @@ &reftitle.returnvalues; - float あるいは float の配列 (どちらか適切なほう)、 - あるいは失敗した場合に, &false; を返します。 + float あるいは float の配列 (どちらか適切なほう) を返します。 + &return.falseforfailure;。 Modified: phpdoc/ja/trunk/reference/openal/functions/openal-source-get.xml =================================================================== --- phpdoc/ja/trunk/reference/openal/functions/openal-source-get.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/openal/functions/openal-source-get.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + openal_source_get @@ -56,8 +56,8 @@ &reftitle.returnvalues; - 取得したプロパティに関連付けられた型、あるいは失敗した場合に - &false; を返します。 + 取得したプロパティに関連付けられた型を返します。 + &return.falseforfailure;。 Modified: phpdoc/ja/trunk/reference/openal/functions/openal-stream.xml =================================================================== --- phpdoc/ja/trunk/reference/openal/functions/openal-stream.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/openal/functions/openal-stream.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + openal_stream @@ -54,7 +54,7 @@ &reftitle.returnvalues; - 成功した場合にストリームリソース、失敗した場合に &false; を返します。 + 成功した場合にストリームリソースを返します。&return.falseforfailure;。 Modified: phpdoc/ja/trunk/reference/paradox/functions/px-get-parameter.xml =================================================================== --- phpdoc/ja/trunk/reference/paradox/functions/px-get-parameter.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/paradox/functions/px-get-parameter.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + px_get_parameter @@ -80,7 +80,7 @@ &reftitle.returnvalues; - パラメータの値、あるいは失敗した場合に &false; を返します。 + パラメータの値、&return.falseforfailure;。 Modified: phpdoc/ja/trunk/reference/paradox/functions/px-get-value.xml =================================================================== --- phpdoc/ja/trunk/reference/paradox/functions/px-get-value.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/paradox/functions/px-get-value.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + px_get_value @@ -59,7 +59,7 @@ &reftitle.returnvalues; - パラメータの値、あるいは失敗した場合に &false; を返します。 + パラメータの値、&return.falseforfailure;。 Modified: phpdoc/ja/trunk/reference/paradox/functions/px-set-tablename.xml =================================================================== --- phpdoc/ja/trunk/reference/paradox/functions/px-set-tablename.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/paradox/functions/px-set-tablename.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + px_set_tablename @@ -50,7 +50,7 @@ &reftitle.returnvalues; - 成功した場合に &null;、失敗した場合に &false; を返します。 + 成功した場合に &null;、&return.falseforfailure;。 Modified: phpdoc/ja/trunk/reference/paradox/functions/px-timestamp2string.xml =================================================================== --- phpdoc/ja/trunk/reference/paradox/functions/px-timestamp2string.xml 2010-05-04 10:29:05 UTC (rev 298958) +++ phpdoc/ja/trunk/reference/paradox/functions/px-timestamp2string.xml 2010-05-04 10:29:43 UTC (rev 298959) @@ -1,6 +1,6 @@ - + px_timestamp2string