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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
7 + 26 = ?
Subscribe to this entry?

 
 [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: Tue Apr 16 16:01:28 2024 UTC