From: nmorozov at atlas-print dot ru
Operating system: FreeBSD 7.x/8.x
PHP version: 5.3.1
PHP Bug Type: InterBase related
Bug description: connecting to Firebird makes segmentation fault
Description:
------------
Im using FreeBSD 8.0 the result on 7.x is the same
My Firebird client version is 2.0.3 server have Yaffil (Firebird 1.5
modification)
Trying to connect using
ibase_connect($database,$user,$pass,'WIN1251','100','3')
make a segmentation fault into apache 2.2.14 log
script produce nothing
Trying to use PDO
$conn = new PDO("firebird:dbname=".$database,$user,$pass);
this produce the same trash
Some time ago a have an earlier version on PHP and Firebird client 1.5.3
and have no problem. But it is not a firebird problem because my C program
that communicates with firebird have no problem.
Trying to resolv it, I try to fix it myself editing
ext/interbase/interbase.c
First i comment isc_attach_db function, and the is no more faults.
The next i rewrite the _php_ibase_attach_db function the same way that I
use in my C code, but i change nothing. Possible Error is in the data
manipulation after connection because structures changed to version
2.0/2.1
PS. Maybe I need to repost it as and PDO bug also ?
Reproduce code:
---------------
ibase_connect($database,$user,$pass,'WIN1251','100','3')
$conn = new PDO("firebird:dbname=".$database,$user,$pass);
Actual result:
--------------
segmentation fault in apache 2.2.14 log
--
Edit bug report at http://bugs.php.net/?id=50478&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50478&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50478&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50478&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50478&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=50478&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50478&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=50478&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=50478&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=50478&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=50478&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=50478&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=50478&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=50478&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50478&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50478&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50478&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=50478&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=50478&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=50478&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=50478&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=50478&r=mysqlcfg