Subject | Re: [firebird-php] BUG: ibase_blob_get |
---|---|
Author | Daniela Mariaschi |
Post date | 2003-06-30T07:49:25Z |
> Firbird 1.5 Beta 3bug)
>
> BUG-Description:
> I. store blob in db: 65535 kb -> binary jgp picture
> (field definition: GRUND_FOTO BLOB SUB_TYPE 0 SEGMENT SIZE 4096)
> (note: have tested different SEGMENT SIZE Values, no difference in the
> ..................................another
>
> BUG: the blobsize information is correct, but not the resulting blobdata!
> $PIC should be the complete jpg-picture, as stored in the db, but it isn't
> !!!
> -> if stored as file it has now: 536 KB instead of 65 KB, and it has
> format,Hi Gerhard
> couldn't be opened with Paint Shop Pro p.e.
There is already an open bug and there is a proposal patch for this ...
(but I have not tryed it yet ... I see it now :) )
http://bugs.php.net/bug.php?id=24224
> but: wrong format ... comes as erroribase_blob_info return an array with this element:
>
> Questions:
> the interbase functions in PHP are very bad documentated ... why?
> i have to found some things with try and error methode
> PHP-HANDBOOK:
> - ibase_blob_info -- Return blob length and other useful info
> thats all in the php-handbook ...
>
> what is returnparameter [0]?
> what is returnparameter [1]?
> what is returnparameter [2] = blobsize, i know now ..
>
0 = "length"
1 = "numseg"
2 = "maxseg"
3 = "stream"
4 = "isnull"
it seems that originally the function returned an array like this:
"lenght" => x
"numseg" => x
"maxseg" => x
"stream" => x
"isnull" => x
must investigate why it was changed then ....
> a handfull of functions with very bad descriptons, this is not theThere is a lot of work in docs to do ....
> way to make firebird/interbase to a really alternative to others,
> BUT I KNOW FIREBIRD IS ONE OF THE BEST!
> how we can change this?
> who has written the php_interbase.dll for PHP? where i can find
> the sourcecode for this dll?
> i don't want to develop with C but i can
> read this source..
If you want to contribute with docs you can start to propose
your comment at php.doc newsgroup and then apply for cvs account.
If you like to read the source code here is the link:
http://cvs.php.net/cvs.php/php-src/ext/interbase?
Regards
Daniela