php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56889 Blobs read maximum size of 1048576 bytes
Submitted: 2006-03-13 18:07 UTC Modified: 2006-03-21 10:31 UTC
From: danyi at mpi-sb dot mpg dot de Assigned: tony2001 (profile)
Status: Closed Package: oci8 (PECL)
PHP Version: Irrelevant OS: Debian Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: danyi at mpi-sb dot mpg dot de
New email:
PHP Version: OS:

 

 [2006-03-13 18:07 UTC] danyi at mpi-sb dot mpg dot de
Description:
------------
Sorry for opening new bug report. But i think this problem is php version irrelevant. I am using PHP Version 5.1.2-1.
I have download the most recent cvs version. After i installed  it, this problem still exit. The version for oci8 is "$Revision: 1.293 $". After that i edit the file php_oci8_int.h, and change :
#define PHP_OCI_LOB_BUFFER_SIZE 1048576l
to
#define PHP_OCI_LOB_BUFFER_SIZE 211048576l
After recompilng, the problem has been solved. The reason why this happen, i think, is by each download operation, there should be some loop function to read the blob file with the limit of the above buffer size for each loop time until all the file has been read. But in fact this loop function read only once. I am not sure whether i am right. This is just a hypothesis. I hope it will help.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-14 02:16 UTC] tony2001 at phpclub dot net
Yes, I know about this problem, but I don't see a decent way to fix it yet, since the buffer size can be in chars (for Unicode) or in bytes, but for Unicode there is no way to know how many _chars_ were read (to increment the counter).
This is an OCI API problem and I'm working with Oracle people on a solution.
 [2006-03-21 10:31 UTC] tony2001 at phpclub dot net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 01:01:29 2024 UTC