php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #18354 Some functions return type resource, not int. Such as mssql_query().
Submitted: 2002-07-15 11:10 UTC Modified: 2005-09-02 14:12 UTC
From: adamhooper at videotron dot ca Assigned: philip (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: adamhooper at videotron dot ca
New email:
PHP Version: OS:

 

 [2002-07-15 11:10 UTC] adamhooper at videotron dot ca
In http://www.php.net/manual/en/function.mssql-query.php the return type is "int". It should be "resource".

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-15 13:44 UTC] philip@php.net
In PHP3 the type "resource" did not exist, it returned int.  This applies to other functions too, such as fopen().  I'll go through the docs and change all applicable functions from int to resource.  Give me a few days :)
 [2005-09-02 14:12 UTC] vrana@php.net
Few days are over - everything is already fixed.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC