#36805 [Opn->Bgs]: lob->load() only returning first 1MB
| From: | tony2001@php.net | Date: | Mon, 20 Mar 2006 19:49:05 +0000 |
| Subject: | #36805 [Opn->Bgs]: lob->load() only returning first 1MB | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-94664@lists.php.net to get a copy of this message | ||
ID: 36805
Updated by: tony2001@php.net
Reported By: terry at bitsoup dot com
-Status: Open
+Status: Bogus
Bug Type: OCI8 related
Operating System: Win2K3 Enterprise
PHP Version: 5.1.3RC1
New Comment:
Duplicate of http://pecl.php.net/bugs/bug.php?id=5995
Previous Comments:
------------------------------------------------------------------------
[2006-03-20 20:43:54] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36805&edit=1