From: mgruenb at gmx dot net
Operating system: Gentoo + SuSE
PHP version: 4.3.1
PHP Bug Type: Sybase (dblib) related
Bug description: Warning: 1 is not a Sybase link index in...
Hi Guys,
I can't get Sybase to work with PHP any more. Everything worked fine with
previous versions of PHP, but since 4.3.1 I always get for all scripts the
following:
Warning: 1 is not a Sybase link index in
/mnt/hda7/www/html/pathbase2/sybasetest.php on line 5
Warning: 0 is not a Sybase result index in
/mnt/hda7/www/html/pathbase2/sybasetest.php on line 6
In old versions I only used to get those if I did a fopen / include before
a sybase_connect, but now I even get it in simple scripts like this:
<?
$query="SELECT * FROM image_data";
$link=sybase_pconnect("SYBASE","PATHBASEUSER","pathbaseuser3465","iso_1");
$dbase=sybase_select_db("pathbase2",$link);
$result=sybase_query($query,$dbase);
for ($i=1; $i<=sybase_num_rows($result); $i++)
{
$row=sybase_fetch_array($result);
echo"$row[image_number]";
}
?>
I'll try the lates snapshot now and report back here later.
Hope this helps!
Cheers,
Michael.
--
Edit bug report at http://bugs.php.net/?id=22676&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22676&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22676&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22676&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22676&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22676&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22676&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22676&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22676&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22676&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22676&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22676&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22676&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22676&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22676&r=gnused