#18744 [Opn->Fbk]: blob_add has max limit of 64k
| From: | sniper@php.net | Date: | Thu, 05 Dec 2002 04:52:21 +0000 |
| Subject: | #18744 [Opn->Fbk]: blob_add has max limit of 64k | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26700@lists.php.net to get a copy of this message | ||
ID: 18744
Updated by: sniper@php.net
Reported By: cheald45@hotmail.com
-Status: Open
+Status: Feedback
Bug Type: InterBase related
Operating System: Redhat 7.3
PHP Version: 4.2.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-08-05 14:42:22] cheald45@hotmail.com
The ibase_blob_add functionality wraps the Interbase blob add
functionality, which will only allow up to 64k of data to be added at
any one time dut to an unsigned short variable. This means that if a
chunk of data is > than 64k, you have to split it into < 64k chunks and
run multiple adds. While this is not a problem, it seems that this
functionality would be better used in the actual PHP source. It
shouldn't be too hard a fix - just split the incoming string into < 64k
chunks and run the add in a loop.
For example, we discovered that a 145k string was being truncated by
the ibase_blob_add function. At the very least, the ibase_blob_add
function should throw a warning if the data is > 64k.
This 64k limit is not documented, and has been a source of much
confusion. It would be very helpful if this change were implemented.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18744&edit=1