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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 18:01:28 2024 UTC