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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rick at pnet dot com dot cn
New email:
PHP Version: OS:

 

 [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: Sat Dec 07 12:01:29 2024 UTC