|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-20 20:49 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 12:00:01 2025 UTC |
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