php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3587 BLOB savefile method problem with binary files
Submitted: 2000-02-23 10:21 UTC Modified: 2006-07-17 08:58 UTC
From: nick at tf dot kharkov dot net Assigned:
Status: Wont fix Package: OCI8 related
PHP Version: 3.0.14 OS: NT SERVER 4.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nick at tf dot kharkov dot net
New email:
PHP Version: OS:

 

 [2000-02-23 10:21 UTC] nick at tf dot kharkov dot net
When I tried to upload binary data (such as pictures) into BLOB fields using "savefile" method of the BLOB descriptor I saw that this files are uploaded partially without any error messages.


In the function "oci8_savedescfile" in the line:
if ((fp = open(filename, O_RDONLY)) == -1) {
			php3_error(E_WARNING, "Can't open file %s", filename);

O_BINARY flag missed in order to proper reading of binary files

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-31 16:13 UTC] php-bugs at lists dot php dot net
We are sorry, but we do not support PHP 3 related problems anymore.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 20:01:45 2024 UTC