From: j dot henge-ernst at interexa dot de
Operating system: linux
PHP version: 5.2.1
PHP Bug Type: ODBC related
Bug description: odbc_close always returns null
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
--
Edit bug report at http://bugs.php.net/?id=40783&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40783&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40783&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40783&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40783&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40783&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40783&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40783&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40783&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40783&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40783&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40783&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40783&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40783&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40783&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40783&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40783&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40783&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40783&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40783&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40783&r=mysqlcfg