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
 [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-2025 The PHP Group
All rights reserved.
Last updated: Fri Dec 05 12:00:01 2025 UTC