From:             
Operating system: FreeBSD 7.3
PHP version:      Irrelevant
Package:          InterBase related
Bug Type:         Bug
Bug description:received signal SIGSEGV php_cli.c:1373

Description:
------------
I am build Firebird-2.1.3.18185-0, install to /usr/local/firebird. Create
link /usr/interbase.



<?php

$host = 'localhost:employee';

$username = 'SYSDBA';

$password = 'masterkey';

$dbh = ibase_connect($host, $username, $password) or die("a1");

$stmt = 'SELECT first 3 * FROM customer';

$sth = ibase_query($dbh, $stmt) or die("a2");



while ($row = ibase_fetch_row($sth)) {

    echo $row[0], "\n";

}

ibase_free_result($sth);

ibase_close($dbh);

?>



Output:

1001

1002

1003



IBase functions works, but Segmentation fault at the end.



gdb php core

bt



#0  0x0000000801649590 in ?? ()

#1  0x000000080120e594 in __cxa_finalize () from /lib/libc.so.7

#2  0x00000008011beac7 in exit () from /lib/libc.so.7

#3  0x0000000000607cdc in main (argc=3, argv=0x7fffffffeb10)

    at /usr/ports/lang/php5/work/php-5.2.12/sapi/cli/php_cli.c:1373




-- 
Edit bug report at http://bugs.php.net/bug.php?id=51659&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=51659&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=51659&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=51659&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=51659&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51659&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=51659&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=51659&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=51659&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=51659&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=51659&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=51659&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=51659&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=51659&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=51659&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51659&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51659&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=51659&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=51659&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=51659&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=51659&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=51659&r=mysqlcfg

Reply via email to