From:             p dot pastori at tiscali dot it
Operating system: all
PHP version:      4.3.1
PHP Bug Type:     Documentation problem
Bug description:  bad return value for ibase_blob_close() and ibase_blob_import()

Functions ibase_blob_close() and ibase_blob_import() both returns a string
(blob_id_str) on success instead of int (as stated by documentation).
The returned string may contains NULLs, so to update a database record
which contains blob field it is necessary to use the ibase_prepare() (with
a ? placeholder for blob_id_string instead of '?' ) instead of
ibase_query().
It would be nice to have an exaple of blob insertion which involves the
following functions:
- ibase_blob_import(), to get the temporary blob_id of just created blob
- ibase_prepare() and ibase_execute() for the query that inserts or
updates a database record which contains blob (this last step may be in
transaction while the first not since it is already in a read-only
transaction).
Finally into the first example reported on ibase_execute() document page
there is an error on the ibase_prepare() where the link_identifier
argument is omitted.
-- 
Edit bug report at http://bugs.php.net/?id=22871&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22871&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22871&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22871&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22871&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22871&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22871&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22871&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22871&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22871&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22871&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22871&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22871&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22871&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22871&r=gnused


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to