> -----Original Message-----
> From: Philip Olson [mailto:[EMAIL PROTECTED]]
> Sent: 22 January 2003 07:08
>
> philip Wed Jan 22 02:08:16 2003 EDT
>
> Modified files:
> /phpdoc/en/reference/oci8/functions ocifetchinto.xml
> Log:
> result no longer passes by reference at call time as of PHP
> 4.2.0 which
> closes bug #21813. Also added an example.
> + <note>
> + <para>
> + Prior to PHP 4.2.0, the <parameter>result</parameter>
> parameter is
> + passed in by reference at call time. So in these
> older versions of
> + PHP you'd use <varname>&$row</varname> in our example
> below. See
> + also <link linkend="ini.allow-call-time-pass-reference">
> + allow_call_time_pass_reference</link>.
> + </para>
> + </note>
> + <para>
I'm sorry, but I simply don't believe this -- mostly because I've been doing
it *without* the call-time reference operator since 4.0.5 (and as I still
have access to a PHP 4.0.5 installation, I've just rechecked it to be sure).
This code does, indeed, work fine in 4.0.5:
$stmt = OCIParse($conn, 'SELECT * FROM DOCS_STATUS');
OCIExecute($stmt);
while (OCIFetchInto($stmt, $results)):
echo "<p>";
foreach ($results as $col=>$val):
echo "$col=$val; ";
endforeach;
echo "</p>\n";
endwhile;
Where did you get this piece of (mis?)information from?
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php