Bug #8517 Updated: BLOB functions don't work with IB6
| From: | lobbin@php.net | Date: | Fri, 11 Jan 2002 21:56:59 +0000 |
| Subject: | Bug #8517 Updated: BLOB functions don't work with IB6 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-76698@lists.php.net to get a copy of this message | ||
ID: 8517
Updated by: lobbin
Old Summary: BLOB functions don't work with IB6
Reported By: hp@oeri.ch
Old Status: Open
Status: Feedback
Bug Type: InterBase related
Operating System: Linux 2.2.17
PHP Version: 4.0.4
New Comment:
Can you reproduce this error on 4.1.1?
Previous Comments:
------------------------------------------------------------------------
[2001-01-02 12:20:23] hp@oeri.ch
In the following snippet, $bstr is set to some binary data, not a blob
id string:
- bstr is not accepted by ibase_query
- on echoing bstr, the closing brace is NEVER printed
- strlen( bstr ) segfaults php...
--- SNIPPET START ---
<?
$dbh = ibase_connect( "localhost:/path/to/db/db.gdb", "user",
"pass" );
$bid = ibase_blob_create( $dbh );
ibase_blob_add( $bid, "alpha" );
$bstr = ibase_blob_close( $bid );
$sql = "INSERT INTO testtable values(1,$bstr)";
ibase_query( $dbh, $sql );
ibase_close( $dbh );
?>
--- SNIPPET END ---
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=8517&edit=1