PHP 4.0 Bug #8517: BLOB functions don't work with IB6

From: Date: Tue, 02 Jan 2001 17:20:23 +0000
Subject: PHP 4.0 Bug #8517: BLOB functions don't work with IB6
Groups: php.dev 
Request: Send a blank email to php-dev+get-42569@lists.php.net to get a copy of this message
From: hp@oeri.ch Operating system: Linux 2.2.17 PHP version: 4.0.4 PHP Bug Type: InterBase related Bug description: BLOB functions don't work with IB6 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 Bug report at: http://bugs.php.net/?id=8517&edit=1

« previous php.dev (#42569) next »