|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18744 blob_add has max limit of 64k
Submitted: 2002-08-05 14:42 UTC Modified: 2003-08-16 11:07 UTC
From: cheald45 at hotmail dot com Assigned:
Status: Closed Package: InterBase related
PHP Version: 4.2.2 OS: Redhat 7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: cheald45 at hotmail dot com
New email:
PHP Version: OS:


 [2002-08-05 14:42 UTC] cheald45 at hotmail dot 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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-04 22:52 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-12-20 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2003-08-16 11:07 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 10:01:31 2024 UTC