php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3992 Segmentation Failure in call ibase_fetch_row()
Submitted: 2000-03-30 22:58 UTC Modified: 2000-05-22 06:10 UTC
From: lumena at happytown dot ru Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Release Candidate 1 OS: Linux Red Hat 6.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
29 + 49 = ?
Subscribe to this entry?

 
 [2000-03-30 22:58 UTC] lumena at happytown dot ru
Script:

$DBID=ibase_connect("localsrv:/base/eolis.gdb", "sysdba", "masterkey", "win1251");
    echo $DBID;
    $TRANSID=ibase_trans(PHP_IBASE_COMMITED, $DBID);
    $QRYID=ibase_query("select o.objname, o.id, o.price   from objects o, objcat c where c.id=o.catid");

    while ( $row=ibase_fetch_object($QRYID) )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
                   SEGMENTATION FAIL
    {
          $st1=$row[1];
          if ( $str!=$st1[0] )
          {
            $str=$st1[0];
            echo " <big><big>$s[0]</big></big><br>" . $body;
          };

          
          echo $row[1];
    };

    ibase_free_result($QRYID);
    ibase_commit($TRANSID);
    ibase_close($DBID);

END OF SCRIPT FRAGMENT

PHP Configuration:
./configure \
--with-apache=../apache \
--with-track-vars \
--with-interbase=/usr/interbase \
--with-trans-id \
--with-config-file-path=/etc

Russian Apache 1.3.9 PL29 or Apache 1.3.12 Configuration:
./configure --enable-module=most \
--enable-shared=max \
--activate-module=src/modules/php4/libphp4.a
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-05-22 06:10 UTC] jah at cvs dot php dot net
InterBase module was not even expected to be working at the time this bug
was reported. Please upgrade.
 [2003-06-07 00:59 UTC] shayb52 at bezeqint dot net
hello,
i am sorry but this problem occurred again with apach 2.040 and php 4.3.1 with interbase, any script will work fine until i try fetch compile parameters:

php --with-interbase=shared (interbase 7.0) and load it to working php as extension, also the compiled version works fine with interbase extension 6.0.
 [2003-06-08 15:09 UTC] shayb52 at bezeqint dot net
hello,

i have also try to install php with interbase 7 and got the same results with the next configuration:

redhat 7.3 php 4.2.x apache 2.0.40
redhat 8.0 php 4.3.1 apache 2.0.40
redhat 9.0 php 4.3.2 apache 2.0.44

it is very starnge that no one has encountered this problem, doesnt any one use interbase?
if any of you have idea i am willing to try.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 14 06:01:35 2024 UTC