#46702 [NEW]: On odbc_pconnect() error empty string returned instead of 0

From: Date: Thu, 27 Nov 2008 21:48:20 +0000
Subject: #46702 [NEW]: On odbc_pconnect() error empty string returned instead of 0
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-1553@lists.php.net to get a copy of this message
From: yusp at bk dot ru Operating system: Windows XP Pro SP2 PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: On odbc_pconnect() error empty string returned instead of 0 Description: ------------ Documentation on ODBC functions: http://www.php.net/manual/en/function.odbc-pconnect.php http://www.php.net/manual/en/function.odbc-connect.php On odbc_pconnect() and odbc_pconnect() error empty string is really returned instead of 0 agree to documentation. Reproduce code: --------------- <script Language="PHP"> @$ODBCConnect = odbc_connect ("NonExistentDSN", "", "", SQL_CUR_USE_ODBC); echo "[$ODBCConnect]"; </script> Expected result: ---------------- [0] Actual result: -------------- [] -- Edit bug report at http://bugs.php.net/?id=46702&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46702&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46702&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46702&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46702&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46702&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46702&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46702&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46702&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46702&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46702&r=support Expected behavior: http://bugs.php.net/fix.php?id=46702&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46702&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46702&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46702&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46702&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46702&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46702&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46702&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46702&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46702&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46702&r=mysqlcfg

« previous php.doc.bugs (#1553) next »