PHP 4.0 Bug #3992: Segmentation Failure in call ibase_fetch_row()
| From: | lumena at happytown dot ru | Date: | Fri, 31 Mar 2000 03:58:47 +0000 |
| Subject: | PHP 4.0 Bug #3992: Segmentation Failure in call ibase_fetch_row() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-17455@lists.php.net to get a copy of this message | ||
From: lumena@happytown.ru
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