Subject Re: [firebird-php] Re: ADODB D4PHP PROBLEMS
Author Lester Caine
dogrocket2003 wrote:
> --- In firebird-php@yahoogroups.com, "dogrocket2003"
> <dogrocket2003@...> wrote:
>> Ok, I found the source forge files for adodb ver 505, will try
> thanks.. I updated to adodb ver 505 still getting error.
> That didnt fix the problem :( still getting BLOB error
>
> Delphi keeps popping up in debug at this spot in adodb-ibase.php, as
> noted Im not even using blobs, though I do have a long edit field with
> 250 varchar... Im using a quadram dbrepeater panel thats built to use
> adodb, I dont know what to do.
>
> adodb-ibase.php, delphi editor highlights line where i put asterisk..
>
> function _BlobDecode( $blob )
> {
> if (ADODB_PHPVER >= 0x5000) {
> * $blob_data = ibase_blob_info($this->_connectionID, $blob );
> $blobid = ibase_blob_open($this->_connectionID, $blob );
> } else {
>
> $blob_data = ibase_blob_info( $blob );
> $blobid = ibase_blob_open( $blob );
> }
>
> if( $blob_data[0] > $this->maxblobsize ) {
>
> $realblob = ibase_blob_get($blobid, $this->maxblobsize);
>
> while($string = ibase_blob_get($blobid, 8192)){
> $realblob .= $string;
> }
> } else {
> $realblob = ibase_blob_get($blobid, $blob_data[0]);
> }
>
> ibase_blob_close( $blobid );
> return( $realblob );
> }

Which version of PHP are you running? This sounds like the blobid bug in PHP
which should be fixed on 5.2.6 in Windows, but I'm not sure *I* ever hit
_BlobDecode myself.
Anybody?

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php