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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Mar 29 09:01:28 2024 UTC