php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40783 odbc_close always returns null
Submitted: 2007-03-12 12:23 UTC Modified: 2007-03-12 12:26 UTC
From: j dot henge-ernst at interexa dot de Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 5.2.1 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: j dot henge-ernst at interexa dot de
New email:
PHP Version: OS:

 

 [2007-03-12 12:23 UTC] j dot henge-ernst at interexa dot de
Description:
------------
the odbc_close function always returns null instead of a boolean value as stated in the documentation for odbc_close. In the souce of php_odbc.c there is no RETURN_TRUE or RETURN_FALSE. So is either the docmentation outdated or is in the sourcecode something missing?

Reproduce code:
---------------
$con = odbc_connect("autot32", "db2inst1", "interexa");
$ret = odbc_close($con);
var_dump($ret);


Expected result:
----------------
bool(true)

Actual result:
--------------
NULL

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-12 12:26 UTC] j dot henge-ernst at interexa dot de
seems the documentation has changed, odbc_close allways returns null in newer version
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Feb 17 09:01:26 2020 UTC