Bug #74946 [Opn]: Adding BOOLEAN field to table crashes php on select
| From: | rudi dot feijo at multidadosti dot com dot br | Date: | Tue, 18 Jul 2017 20:16:25 +0000 |
| Subject: | Bug #74946 [Opn]: Adding BOOLEAN field to table crashes php on select | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-210114@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74946&edit=1
ID: 74946
User updated by: rudi dot feijo at multidadosti dot com dot br
Reported by: rudi dot feijo at multidadosti dot com dot br
Summary: Adding BOOLEAN field to table crashes php on select
Status: Open
Type: Bug
Package: InterBase related
Operating System: win2012 R2
PHP Version: 7.1.7
Block user comment: N
Private report: N
New Comment:
Firebird version 3.0.2 64bit windows
PHP version is also 64bit
Crash happens on any environment, command line php or webserver
Previous Comments:
------------------------------------------------------------------------
[2017-07-18 20:13:54] rudi dot feijo at multidadosti dot com dot br
Description:
------------
Adding a BOOLEAN field to a table, then trying any SELECT from that table crashes the server
Test script:
---------------
<?php
/* sql for db :
CREATE DATABASE 'c:\test.fdb'
USER 'SYSDBA' PASSWORD 'masterkey'
PAGE_SIZE 16384
DEFAULT CHARACTER SET WIN1252 COLLATION WIN1252;
CREATE TABLE ASD (
AA INTEGER
);
ALTER TABLE ASD ADD NEW_FIELD BOOLEAN;
*/
$c = ibase_connect('localhost:C:\\test.fdb','SYSDBA','masterkey');
$q = ibase_query('select * from asd');
$r = ibase_fetch_assoc($q);
echo ibase_errmsg();
echo array_keys($r)[0];
Actual result:
--------------
php crash (error 500)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74946&edit=1