php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1872 i can't use function "sybase_fetch_object" but function sybase_fetch_array ok!
Submitted: 1999-07-26 02:44 UTC Modified: 1999-07-31 20:32 UTC
From: rick at pnet dot com dot cn Assigned:
Status: Closed Package: Sybase (dblib) related
PHP Version: 4.0 Beta 1 OS: linux kernel 2.0.36
Private report: No CVE-ID: None
 [1999-07-26 02:44 UTC] rick at pnet dot com dot cn
---script ------------------
<?php
	$conn=sybase_pconnect("SYBASE","sa","");
 	if ($conn<1){
  		echo "???ݿ?????ʧ??\$conn is $conn\n<br>";
  		exit();
  	}
  	$query="select loginname,name,acctype,prepay,case,state from ppptable\n";
  	$result=sybase_query($query,$conn);
  	if($result<1){
  		echo "database error<br>\n";
  		exit;
 	}

	$count=0;
	sybase_data_seek($result,1);
	while(is_object($res=sybase_fetch_object($result)))
	{
		$count++;
  	
  	echo "$res->name <br>";
  	}

?>
------end script -----------------------------------------------

BUG:
  just sybase_fetch_object return  NULL;
 but sybase_fetch_array work fine! why?????????

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-31 20:32 UTC] zeev at cvs dot php dot net
Fixed in the latest CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC