Bug #60235 [Opn->Dup]: Interbase BOOLEAN fields cannot be read by SELECT

From: Date: Wed, 13 Jun 2018 12:27:36 +0000
Subject: Bug #60235 [Opn->Dup]: Interbase BOOLEAN fields cannot be read by SELECT
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215681@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60235&edit=1 ID: 60235 Updated by: cmb@php.net Reported by: sandi at iol dot it Summary: Interbase BOOLEAN fields cannot be read by SELECT -Status: Open +Status: Duplicate Type: Bug Package: InterBase related Operating System: Windows 7 PHP Version: 5.3.8 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: I'm marking this as duplicate of bug #74946. Actually, it's the other way round, but the other ticket contains more useful information. Previous Comments: ------------------------------------------------------------------------ [2011-11-07 17:25:24] sandi at iol dot it Description: ------------ Condition: Interbase XE. package used: PHP_INTERBASE.DLL inserted in php-5.3.8-nts-Win32-VC9-x86 I have used gds32.dll of Interbase XE (version 10.0.2.474), renamed to fbclient.dll and stored in C:\PHP directory. (This is the one that surely is used because, if I remove it, the PHP_INTERBASE.DLL fails to be loaded). To replicate, create a table called TB_ERROR in your interbase database: CREATE TABLE TB_ERROR ( IDX_ERROR INTEGER NOT NULL, FLAG BOOLEAN ); Test script: --------------- <?php $database = "127.0.0.1/3052:/database/ERRORPHP.ib"; $username ="sysdba"; $password ="masterkey"; $dbh = ibase_connect($database, $username, $password); $trans = ibase_trans(IBASE_DEFAULT,$dbh); $stmt = 'SELECT IDX_ERROR,FLAG FROM TB_ERROR'; $sth = ibase_query($dbh,$stmt); $line = ibase_fetch_row($sth); foreach ($line as $col_value) print ("$col_value<BR>\n"); ibase_commit($trans); ?> Expected result: ---------------- (The table is empty, so you do not expect ant result and any error) Actual result: -------------- Error HTTP 500.0 - Internal Server Error C:\Program Files\PHP\php-cgi.exe ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60235&edit=1

« previous php.bugs (#215681) next »