For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > March 2004 > #27745 [Opn]: OCI8 doc for oci_new_descriptor uses call-time reference parameter









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #27745 [Opn]: OCI8 doc for oci_new_descriptor uses call-time reference parameter
irchtml@php.net

2004-03-29, 3:32 am

ID: 27745
Updated by: irchtml@php.net
Reported By: cjbj at hotmail dot com
Status: Open
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:

Passing the variable by [call-time] reference (&$lob) is not needed,
I'll fix the example in just a moment.


Previous Comments:
------------------------------------------------------------------------

[2004-03-29 02:04:20] cjbj at hotmail dot com

Looks like it still assumes access to global variables too.
If I may presume, there is a related example that doesn't
have these problems at
http://otn.oracle.com/tech/opensour...faq.html#uplobs

------------------------------------------------------------------------

[2004-03-29 01:59:27] cjbj at hotmail dot com

Description:
------------
The example in the newly revamped manual entry
http://www.php.net/manual/en/functi...-descriptor.php
has the line:

oci_bind_by_name($stmt, ':the_blob', &$lob, -1, OCI_B_BLOB);

Using this syntax I get "Warning: Call-time pass-by-reference has been
deprecated"




------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=27745&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com