From: maurice dot lacroix at wanadoo dot nl
Operating system: Windows 2000 Server
PHP version: 5.0.3
PHP Bug Type: Documentation problem
Bug description: Error in example code for uploading file into Oracle BLOB
Description:
------------
There is an error in the example code, where a file is upload into the
Oracle database and saved as a BLOB.
The line oci_execute($conn); should be replaced with oci_commit($conn);.
Reproduce code:
---------------
if ($lob->savefile($lob_upload)){
oci_execute($conn); // here is the error
echo "Blob successfully uploaded\n";
}else{
echo "Couldn't upload Blob\n";
}
Expected result:
----------------
Blob successfully uploaded. The file should be upload into a BLOB.
Actual result:
--------------
Error message.
--
Edit bug report at http://bugs.php.net/?id=31386&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31386&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=31386&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=31386&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31386&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31386&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31386&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31386&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31386&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31386&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31386&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=31386&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=31386&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31386&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31386&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31386&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31386&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31386&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31386&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31386&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31386&r=mysqlcfg