[PHP-DEV] PHP 4.0 Bug #3992: Segmentation Failure in call ibase_fetch_row() From: lumena <email protected>
Date: 03/30/00

From: lumena <email protected>
Operating system: Linux Red Hat 6.1
PHP version: 4.0 Release Candidate 1
PHP Bug Type: Other
Bug description: Segmentation Failure in call ibase_fetch_row()

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
 

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>