#18744 [NEW]: blob_add has max limit of 64k

From: Date: Mon, 05 Aug 2002 18:42:23 +0000
Subject: #18744 [NEW]: blob_add has max limit of 64k
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16017@lists.php.net to get a copy of this message
From: cheald45@hotmail.com Operating system: Redhat 7.3 PHP version: 4.2.2 PHP Bug Type: InterBase related Bug description: blob_add has max limit of 64k 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 bug report at http://bugs.php.net/?id=18744&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18744&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18744&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18744&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18744&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18744&r=support Expected behavior: http://bugs.php.net/fix.php?id=18744&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18744&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18744&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18744&r=globals

« previous php.bugs (#16017) next »