From: terry at bitsoup dot com
Operating system: Win2K3 Enterprise
PHP version: 5.1.3RC1
PHP Bug Type: OCI8 related
Bug description: lob->load() only returning first 1MB
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 bug report at http://bugs.php.net/?id=36805&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=36805&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=36805&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=36805&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36805&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=36805&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36805&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36805&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36805&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36805&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36805&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=36805&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=36805&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36805&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36805&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36805&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36805&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36805&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36805&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36805&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36805&r=mysqlcfg