note 40849 added to function.ocinewdescriptor
| From: | cjbj at hotmail dot com | Date: | Wed, 17 Mar 2004 03:55:03 +0000 |
| Subject: | note 40849 added to function.ocinewdescriptor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66935@lists.php.net to get a copy of this message | ||
In PHP5 the way Example 2 passes a CLOB bind variable as an input
parameter to a PL/SQL procedure can be extended to BLOBs.
The critical change is:
OCIBindByName($stmt, ':data', $blob, -1, OCI_B_BLOB);
$blob->WriteTemporary($data, OCI_B_BLOB);
This doesn't work for me in PHP4. I believe it is because the
implementation of OCIWriteTemporaryLob() always binds as a CLOB.
(This is true as of php4-STABLE-200403170230). In PHP5 the interface
has changed and a type parameter is permitted.
----
Manual Page -- http://www.php.net/manual/en/function.ocinewdescriptor.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40849
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40849&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40849&report=yes
Search -- http://master.php.net/manage/user-notes.php