Bug #74946 [NEW]: Adding BOOLEAN field to table crashes php on select
From: rudi dot feijo at multidadosti dot com dot br
Operating system: win2012 R2
PHP version: 7.1.7
Package: InterBase related
Bug Type: Bug
Bug description:Adding BOOLEAN field to table crashes php on select
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 bug report at https://bugs.php.net/bug.php?id=74946&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74946&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74946&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74946&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74946&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74946&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74946&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74946&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74946&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74946&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74946&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74946&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74946&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74946&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74946&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74946&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74946&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74946&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74946&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74946&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74946&r=mysqlcfg
Thread (7 messages)
- rudi dot feijo at multidadosti dot com dot br