diff --git a/language-snippets.ent b/language-snippets.ent index 8ed9a07303d6..0d96c58f19fc 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -1357,7 +1357,7 @@ string, or a Connect Name from the tnsnames.ora file, or the name of a local Oracle instance. -If not specified, PHP uses +If not specified or &null;, PHP uses environment variables such as TWO_TASK (on Linux) or LOCAL (on Windows) and ORACLE_SID to determine the diff --git a/reference/oci8/OCI-Collection/append.xml b/reference/oci8/OCI-Collection/append.xml index e74cb8eca427..33450779e5ee 100644 --- a/reference/oci8/OCI-Collection/append.xml +++ b/reference/oci8/OCI-Collection/append.xml @@ -9,8 +9,8 @@ &reftitle.description; - boolOCICollection::append - mixedvalue + public boolOCICollection::append + stringvalue Appends element to the end of the collection. @@ -25,7 +25,7 @@ value - The value to be added to the collection. Can be a string or a number. + The value to be added to the collection. @@ -67,13 +67,12 @@ &reftitle.seealso; - + - - diff --git a/reference/oci8/OCI-Collection/getElem.xml b/reference/oci8/OCI-Collection/getElem.xml index b2d3672c1a2e..51749bfbf15d 100644 --- a/reference/oci8/OCI-Collection/getElem.xml +++ b/reference/oci8/OCI-Collection/getElem.xml @@ -9,7 +9,7 @@ &reftitle.description; - mixedOCICollection::getElem + public stringfloatnullfalseOCICollection::getElem intindex @@ -69,13 +69,12 @@ &reftitle.seealso; - + - - diff --git a/reference/oci8/OCI-Collection/max.xml b/reference/oci8/OCI-Collection/max.xml index 72b42560bd2d..726e84a3190b 100644 --- a/reference/oci8/OCI-Collection/max.xml +++ b/reference/oci8/OCI-Collection/max.xml @@ -9,8 +9,8 @@ &reftitle.description; - intOCICollection::max - + public intfalseOCICollection::max + Returns the maximum number of elements in the collection. @@ -59,13 +59,12 @@ &reftitle.seealso; - + - - diff --git a/reference/oci8/OCI-Lob/close.xml b/reference/oci8/OCI-Lob/close.xml index ed2d4a195bb6..f18701fc2bcd 100644 --- a/reference/oci8/OCI-Lob/close.xml +++ b/reference/oci8/OCI-Lob/close.xml @@ -9,12 +9,12 @@ &reftitle.description; - boolOCILob::close - + public boolOCILob::close + Closes descriptor of LOB or FILE. This function should be used only with - . + . @@ -57,13 +57,12 @@ &reftitle.seealso; - + - - diff --git a/reference/oci8/OCI-Lob/export.xml b/reference/oci8/OCI-Lob/export.xml index cbaf8a4cd9a7..bf59339d6297 100644 --- a/reference/oci8/OCI-Lob/export.xml +++ b/reference/oci8/OCI-Lob/export.xml @@ -9,10 +9,10 @@ &reftitle.description; - boolOCILob::export + public boolOCILob::export stringfilename - intstart - intlength + intnulloffset&null; + intnulllength&null; Exports LOB contents to a file. @@ -32,7 +32,7 @@ - start + offset Indicates from where to start exporting. @@ -69,6 +69,12 @@ + + 8.0.0, PECL OCI8 3.0.0 + + offset and length are now nullable. + + 8.0.0, PECL OCI8 3.0.0 @@ -85,13 +91,12 @@ &reftitle.seealso; - + - - diff --git a/reference/oci8/OCI-Lob/flush.xml b/reference/oci8/OCI-Lob/flush.xml index 219ccf93571c..1b15bb153d18 100644 --- a/reference/oci8/OCI-Lob/flush.xml +++ b/reference/oci8/OCI-Lob/flush.xml @@ -9,8 +9,8 @@ &reftitle.description; - boolOCILob::flush - intflag + public boolOCILob::flush + intflag0 OCILob::flush actually writes data to the server. @@ -76,14 +76,13 @@ &reftitle.seealso; - - + + - - diff --git a/reference/oci8/OCI-Lob/free.xml b/reference/oci8/OCI-Lob/free.xml index e5edaf99d125..cf917a2a41c6 100644 --- a/reference/oci8/OCI-Lob/free.xml +++ b/reference/oci8/OCI-Lob/free.xml @@ -9,8 +9,8 @@ &reftitle.description; - boolOCILob::free - + public boolOCILob::free + Frees resources associated with the descriptor, previously allocated with @@ -54,7 +54,6 @@ - - diff --git a/reference/oci8/OCI-Lob/rewind.xml b/reference/oci8/OCI-Lob/rewind.xml index 6b3da45589f0..07bdc7a423cb 100644 --- a/reference/oci8/OCI-Lob/rewind.xml +++ b/reference/oci8/OCI-Lob/rewind.xml @@ -9,8 +9,8 @@ &reftitle.description; - boolOCILob::rewind - + public boolOCILob::rewind + Sets the internal pointer to the beginning of the large object. @@ -56,14 +56,13 @@ &reftitle.seealso; - - + + - - diff --git a/reference/oci8/OCI-Lob/setBuffering.xml b/reference/oci8/OCI-Lob/setBuffering.xml index 98e0cc4c638e..c70285053564 100644 --- a/reference/oci8/OCI-Lob/setBuffering.xml +++ b/reference/oci8/OCI-Lob/setBuffering.xml @@ -9,12 +9,12 @@ &reftitle.description; - boolOCILob::setBuffering - boolon_off + public boolOCILob::setBuffering + boolmode Sets the buffering for the large object, depending on the value of the - on_off parameter. + mode parameter. Use of this function may provide performance improvements by buffering @@ -31,7 +31,7 @@ - on_off + mode &true; for on and &false; for off. @@ -77,13 +77,12 @@ &reftitle.seealso; - + - - diff --git a/reference/oci8/OCI-Lob/tell.xml b/reference/oci8/OCI-Lob/tell.xml index 1e24f6941613..60e9ccbb0cba 100644 --- a/reference/oci8/OCI-Lob/tell.xml +++ b/reference/oci8/OCI-Lob/tell.xml @@ -9,8 +9,8 @@ &reftitle.description; - intOCILob::tell - + public intfalseOCILob::tell + Gets the current position of a LOB's internal pointer. @@ -57,15 +57,14 @@ &reftitle.seealso; - - - + + + - - diff --git a/reference/oci8/functions/oci-bind-by-name.xml b/reference/oci8/functions/oci-bind-by-name.xml index 01ff3da91970..8f2b4c6d53be 100644 --- a/reference/oci8/functions/oci-bind-by-name.xml +++ b/reference/oci8/functions/oci-bind-by-name.xml @@ -11,14 +11,14 @@ booloci_bind_by_name resourcestatement - stringbv_name - mixedvariable - intmaxlength-1 - inttypeSQLT_CHR + stringparam + mixedvar + intmax_length-1 + inttype0 - Binds a PHP variable variable to the Oracle - bind variable placeholder bv_name. Binding + Binds a PHP variable var to the Oracle + bind variable placeholder param. Binding is important for Oracle database performance and also as a way to avoid SQL Injection security issues. @@ -49,14 +49,14 @@ - You must specify maxlength when using + You must specify max_length when using an OUT bind so that PHP allocates enough memory to hold the returned value. For IN binds it is recommended to set - the maxlength length if the statement is + the max_length length if the statement is re-executed multiple times with different values for the PHP variable. Otherwise Oracle may truncate data to the length of the initial PHP variable value. If you don't know what the maximum @@ -102,32 +102,32 @@ - bv_name + param The colon-prefixed bind variable placeholder used in the statement. The colon is optional - in bv_name. Oracle does not use question + in param. Oracle does not use question marks for placeholders. - variable + var - The PHP variable to be associated with bv_name + The PHP variable to be associated with param - maxlength + max_length Sets the maximum length for the data. If you set it to -1, this function will use the current length - of variable to set the maximum - length. In this case the variable must + of var to set the maximum + length. In this case the var must exist and contain data when oci_bind_by_name is called. @@ -822,7 +822,7 @@ var_dump($output2); // false - The PHP variable argument is a reference. Some + The PHP var argument is a reference. Some forms of loops do not work as expected: @@ -866,7 +866,6 @@ foreach ($myarray as $key => $value) { - - diff --git a/reference/oci8/functions/oci-client-version.xml b/reference/oci8/functions/oci-client-version.xml index aaeafb1fa354..08c12f87e2a6 100644 --- a/reference/oci8/functions/oci-client-version.xml +++ b/reference/oci8/functions/oci-client-version.xml @@ -27,7 +27,7 @@ &reftitle.returnvalues; - Returns the version number as a string. + Returns the version number as a &string;. diff --git a/reference/oci8/functions/oci-close.xml b/reference/oci8/functions/oci-close.xml index 8f7bff0525d6..f77058243d27 100644 --- a/reference/oci8/functions/oci-close.xml +++ b/reference/oci8/functions/oci-close.xml @@ -9,7 +9,7 @@ &reftitle.description; - booloci_close + boolnulloci_close resourceconnection @@ -45,7 +45,8 @@ &reftitle.returnvalues; - &return.success; + Returns &null; when oci8.old_oci_close_semantics is enabled, + or &true; otherwise. @@ -227,7 +228,6 @@ print $r; // displays the function return value "Finished" - - diff --git a/reference/oci8/functions/oci-define-by-name.xml b/reference/oci8/functions/oci-define-by-name.xml index 0bccb73356c4..8878345154e7 100644 --- a/reference/oci8/functions/oci-define-by-name.xml +++ b/reference/oci8/functions/oci-define-by-name.xml @@ -11,9 +11,9 @@ booloci_define_by_name resourcestatement - stringcolumn_name - mixedvariable - inttypeSQLT_CHR + stringcolumn + mixedvar + inttype0 Associates a PHP variable with a column for query fetches using oci_fetch. @@ -35,7 +35,7 @@ - column_name + column The column name used in the query. @@ -48,7 +48,7 @@ - variable + var The PHP variable that will contain the returned column value. @@ -274,7 +274,6 @@ oci_close($conn); - - diff --git a/reference/oci8/functions/oci-error.xml b/reference/oci8/functions/oci-error.xml index 4d431e0d98f0..f849c6233070 100644 --- a/reference/oci8/functions/oci-error.xml +++ b/reference/oci8/functions/oci-error.xml @@ -9,8 +9,8 @@ &reftitle.description; - arrayoci_error - resourceresource + arrayfalseoci_error + resourcenullconnection_or_statement&null; Returns the last error found. @@ -26,14 +26,14 @@ - resource + connection_or_statement - For most errors, resource is the + For most errors, connection_or_statement is the resource handle that was passed to the failing function call. For connection errors with oci_connect, oci_new_connect or - oci_pconnect do not pass resource. + oci_pconnect &null; should be passed. @@ -97,6 +97,28 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0, PECL OCI8 3.0.0 + + connection_or_statement is now nullable. + + + + + + + &reftitle.examples; @@ -155,7 +177,6 @@ if (!$r) { - - diff --git a/reference/oci8/functions/oci-fetch-array.xml b/reference/oci8/functions/oci-fetch-array.xml index cf794f0290a4..2d9769742e72 100644 --- a/reference/oci8/functions/oci-fetch-array.xml +++ b/reference/oci8/functions/oci-fetch-array.xml @@ -10,9 +10,9 @@ &reftitle.description; - arrayoci_fetch_array + arrayfalseoci_fetch_array resourcestatement - intmode + intmodeOCI_BOTH | OCI_RETURN_NULLS Returns an array containing the next result-set row of a query. @@ -672,7 +672,6 @@ oci_close($conn); - - diff --git a/reference/oci8/functions/oci-fetch-assoc.xml b/reference/oci8/functions/oci-fetch-assoc.xml index ceaa632d05f3..754409ef8d27 100644 --- a/reference/oci8/functions/oci-fetch-assoc.xml +++ b/reference/oci8/functions/oci-fetch-assoc.xml @@ -9,7 +9,7 @@ &reftitle.description; - arrayoci_fetch_assoc + arrayfalseoci_fetch_assoc resourcestatement @@ -103,7 +103,6 @@ oci_close($conn); - - diff --git a/reference/oci8/functions/oci-fetch-object.xml b/reference/oci8/functions/oci-fetch-object.xml index c2750d8b5c12..d656c429de5e 100644 --- a/reference/oci8/functions/oci-fetch-object.xml +++ b/reference/oci8/functions/oci-fetch-object.xml @@ -9,8 +9,9 @@ &reftitle.description; - objectoci_fetch_object + stdClassfalseoci_fetch_object resourcestatement + intmodeOCI_ASSOC | OCI_RETURN_NULLS Returns an object containing the next result-set row of a query. @@ -207,7 +208,6 @@ oci_close($conn); - - diff --git a/reference/oci8/functions/oci-fetch-row.xml b/reference/oci8/functions/oci-fetch-row.xml index 7c8b7c90856c..506a5381dc65 100644 --- a/reference/oci8/functions/oci-fetch-row.xml +++ b/reference/oci8/functions/oci-fetch-row.xml @@ -9,7 +9,7 @@ &reftitle.description; - arrayoci_fetch_row + arrayfalseoci_fetch_row resourcestatement @@ -103,7 +103,6 @@ oci_close($conn); - - diff --git a/reference/oci8/functions/oci-field-is-null.xml b/reference/oci8/functions/oci-field-is-null.xml index 6e5af2c73371..c62353a7fd40 100644 --- a/reference/oci8/functions/oci-field-is-null.xml +++ b/reference/oci8/functions/oci-field-is-null.xml @@ -11,10 +11,10 @@ booloci_field_is_null resourcestatement - mixedfield + stringintcolumn - Checks if the given field from the current row of + Checks if the given column from the current row of statement is &null;. @@ -32,7 +32,7 @@ - field + column Can be the field's index (1-based) or name. @@ -46,7 +46,7 @@ &reftitle.returnvalues; - Returns &true; if field is &null;, &false; otherwise. + Returns &true; if column is &null;, &false; otherwise. @@ -107,7 +107,6 @@ oci_close($conn); - - diff --git a/reference/oci8/functions/oci-lob-copy.xml b/reference/oci8/functions/oci-lob-copy.xml index 601e6fb4239c..91f803c3e71e 100644 --- a/reference/oci8/functions/oci-lob-copy.xml +++ b/reference/oci8/functions/oci-lob-copy.xml @@ -10,9 +10,9 @@ &reftitle.description; booloci_lob_copy - OCILoblob_to - OCILoblob_from - intlength0 + OCILobto + OCILobfrom + intnulllength&null; Copies a large object or a part of a large object to another large object. @@ -29,7 +29,7 @@ - lob_to + to The destination LOB. @@ -37,7 +37,7 @@ - lob_from + from The copied LOB. @@ -63,6 +63,28 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0, PECL OCI8 3.0.0 + + length is now nullable. + + + + + + + &reftitle.notes; @@ -73,7 +95,6 @@ - - - diff --git a/reference/oci8/functions/oci-lob-is-equal.xml b/reference/oci8/functions/oci-lob-is-equal.xml index 640acad38ae2..793ae7288854 100644 --- a/reference/oci8/functions/oci-lob-is-equal.xml +++ b/reference/oci8/functions/oci-lob-is-equal.xml @@ -10,8 +10,8 @@ &reftitle.description; booloci_lob_is_equal - OCI-Loblob1 - OCI-Loblob2 + OCILoblob1 + OCILoblob2 Compares two LOB/FILE locators. @@ -59,7 +59,6 @@ - - diff --git a/reference/oci8/functions/oci-new-collection.xml b/reference/oci8/functions/oci-new-collection.xml index 821db6c70811..409ceb8d6966 100644 --- a/reference/oci8/functions/oci-new-collection.xml +++ b/reference/oci8/functions/oci-new-collection.xml @@ -9,10 +9,10 @@ &reftitle.description; - OCICollectionoci_new_collection + OCICollectionfalseoci_new_collection resourceconnection - stringtdo - stringschema&null; + stringtype_name + stringnullschema&null; Allocates a new collection object. @@ -33,7 +33,7 @@ - tdo + type_name Should be a valid named type (uppercase). @@ -45,7 +45,7 @@ Should point to the scheme, where the named type was created. The name - of the current user is the default value. + of the current user is used when &null; is passed. @@ -61,6 +61,28 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0, PECL OCI8 3.0.0 + + schema is now nullable. + + + + + + + &reftitle.notes; @@ -79,7 +101,6 @@ - - diff --git a/reference/oci8/functions/oci-new-connect.xml b/reference/oci8/functions/oci-new-connect.xml index be0268c0be2b..4f0e5a20e038 100644 --- a/reference/oci8/functions/oci-new-connect.xml +++ b/reference/oci8/functions/oci-new-connect.xml @@ -9,12 +9,12 @@ &reftitle.description; - resourceoci_new_connect + resourcefalseoci_new_connect stringusername stringpassword - stringconnection_string - stringcharacter_set - intsession_mode + stringnullconnection_string&null; + stringencoding"" + intsession_modeOCI_DEFAULT Establishes a new connection to an Oracle server and logs on. @@ -55,7 +55,7 @@ - character_set + encoding &oci.charset; @@ -77,6 +77,28 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0, PECL OCI8 3.0.0 + + connection_string is now nullable. + + + + + + + &reftitle.examples; @@ -146,7 +168,6 @@ query("new connection after commit", $c2); - - + oci_set_call_timeout Sets a millisecond timeout for database calls @@ -11,7 +11,7 @@ booloci_set_call_timeout resourceconnection - inttime_out + inttimeout Sets a timeout limiting the maxium time a database round-trip using this connection may take. @@ -56,7 +56,7 @@ - time_out + timeout The maximum time in milliseconds that any single round-trip between PHP and Oracle Database may take. @@ -94,7 +94,6 @@ oci_set_call_timeout($conn, 5000); - - + oci_set_db_operation Sets the database operation @@ -11,7 +11,7 @@ booloci_set_db_operation resourceconnection - stringdbop + stringaction Sets the DBOP for Oracle tracing. @@ -42,7 +42,7 @@ - dbop + action User chosen string. @@ -115,7 +115,6 @@ SQL> select dbop_name from v$sql_monitor; -