From 3f1ae92e573a3ba7212eca4475a3afa1896dcc7b Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Wed, 22 Jan 2003 07:08:15 +0000 Subject: [PATCH] result no longer passes by reference at call time as of PHP 4.2.0 which closes bug #21813. Also added an example. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@113009 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/oci8/functions/ocifetchinto.xml | 49 +++++++++++++++++++---- 1 file changed, 41 insertions(+), 8 deletions(-) diff --git a/reference/oci8/functions/ocifetchinto.xml b/reference/oci8/functions/ocifetchinto.xml index 1acf4da4c6..070d1c671a 100644 --- a/reference/oci8/functions/ocifetchinto.xml +++ b/reference/oci8/functions/ocifetchinto.xml @@ -1,5 +1,5 @@ - + @@ -11,7 +11,7 @@ intOCIFetchInto intstmt - array &result + array result intmode @@ -22,11 +22,20 @@ result will contain a zero-based array of all columns that are not &null;. - - The mode parameter allows you to change the - default behaviour. You can specify more than one flag by simply - adding them up (eg OCI_ASSOC+OCI_RETURN_NULLS). The known flags - are: + + + Prior to PHP 4.2.0, the result parameter is + passed in by reference at call time. So in these older versions of + PHP you'd use &$row in our example below. See + also + allow_call_time_pass_reference. + + + + The mode parameter allows you to change the + default behaviour. You can specify more than one flag by simply + adding them up (eg OCI_ASSOC+OCI_RETURN_NULLS). The known flags + are: OCI_ASSOC Return an associative array. @@ -43,7 +52,31 @@ instead of the descriptor. - + + + + A simple <function>OCIFetchInto</function> example + + +]]> + + + + + See also OCIExecute. +