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
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: 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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 21:01:27 2024 UTC