From:             
Operating system: All
PHP version:      Irrelevant
Package:          InterBase related
Bug Type:         Bug
Bug description:Segmentation fault while executing ibase_db_info

Description:
------------
All versions of PHP takes segmentation fault while executing
ibase_db_info() function. I solved this problem and wrote patch. Please
apply it.

Thanks.

Test script:
---------------
<?php

$resource = ibase_service_attach("localhost", "testvh11_fb1234",
"fb1234");
echo ibase_db_info($resource, "testvh11_fb1234.fdb", IBASE_STS_HDR_PAGES);

?>

Expected result:
----------------
testvh1 public_html # ./php-5.2.17/sapi/cli/php test.php 
 
Database "/var/lib/firebird/testvh11_fb1234.fdb" 
Database header page information: 
        Flags                   0 
        Checksum                12345 
        Generation              65 
        Page size               8192 
        ODS version             11.2 
        Oldest transaction      20 
        Oldest active           21 
        Oldest snapshot         21 
        Next transaction        26 
        Bumped transaction      1 
        Sequence number         0 
        Next attachment ID      38 
        Implementation ID       24 
        Shadow count            0 
        Page buffers            0 
        Next header page        0 
        Database dialect        3 
        Creation date           Jan 30, 2012 15:10:47 
        Attributes              force write 
 
    Variable header data: 
        *END* 
testvh1 public_html #

Actual result:
--------------
testvh1 public_html # php test.php 
Segmentation fault
testvh1 public_html #

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

Reply via email to