php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #31386 Error in example code for uploading file into Oracle BLOB
Submitted: 2005-01-03 11:19 UTC Modified: 2005-01-03 11:23 UTC
From: maurice dot lacroix at wanadoo dot nl Assigned:
Status: Closed Package: Documentation problem
PHP Version: 5.0.3 OS: Windows 2000 Server
Private report: No CVE-ID: None
 [2005-01-03 11:19 UTC] maurice dot lacroix at wanadoo dot nl
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-03 11:23 UTC] didou@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of didou
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=615f5274c28498f61b018a1b0740a50cad067fc1
Log: fix #31386: wrong function called
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 26 12:00:02 2025 UTC