php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36805 lob->load() only returning first 1MB
Submitted: 2006-03-20 20:43 UTC Modified: 2006-03-20 20:49 UTC
From: terry at bitsoup dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 5.1.3RC1 OS: Win2K3 Enterprise
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: terry at bitsoup dot com
New email:
PHP Version: OS:

 

 [2006-03-20 20:43 UTC] terry at bitsoup dot com
Description:
------------
When we tried to load an approx. 2.2MB LOB into a string using the $lob->load() routine, only the first 1MB was returned.

We did not notice this behavior in previous versions.

The workaround we have in place for now is to use the $lob->read() method instead.

$text = ''
while ($str = $clob->read(100000)) { $text .= $str; }


Reproduce code:
---------------
$text = '';
$text = $clob->load();
echo "LOB SIZE=" . $clob->size() . "<br>";
echo "STR SIZE=" . strlen($text) . "<br>";




Expected result:
----------------
LOB SIZE=2213589
STR SIZE=2213589

Actual result:
--------------
LOB SIZE=2213589
STR SIZE=1048576

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Feb 10 02:00:01 2026 UTC