php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8086 query link identifiers are not usable
Submitted: 2000-12-03 10:13 UTC Modified: 2001-06-30 14:59 UTC
From: jcelle at alternis dot fr Assigned:
Status: Closed Package: MSSQL related
PHP Version: 4.0.3pl1 OS: windows nt 4.0 station
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: jcelle at alternis dot fr
New email:
PHP Version: OS:

 

 [2000-12-03 10:13 UTC] jcelle at alternis dot fr
This report uses php 4.04 and the php_mssql70.dll extension on windows nt 4.
There seem to be a problem with the functions that accept a mssql_query() link identifier as parameter.

I have the followin basic script :

$hdb = mssql_connect( "testserver", "test", "testpwd" );
print( "hdb = $hdb<br>" );
print( "mssql_select_db : ".mssql_select_db( "test_db", $hdb )."<br>" );
$hcur = mssql_query( "select * from t_test", $hdb );
print( "hcur = $hcur<br>" );
print( "mssql_num_fields : ".mssql_num_fields( $hcur )."<br>" );
print( "mssql_num_rows : ".mssql_num_rows( $hcur )."<br>" );


which produces the following output :

hdb = Resource id #1
mssql_select_db : 1
hcur = 1
Warning: Supplied argument is not a valid MS SQL-result resource in c:\php\default.php4 on line 17
mssql_num_fields : 
Warning: Supplied argument is not a valid MS SQL-result resource in c:\php\default.php4 on line 18
mssql_num_rows : 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-30 14:59 UTC] fmk@php.net
Update to latest version. All link identifiers has been changed from integers to resources.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 16:01:31 2024 UTC