ID: 20079 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Oracle related Operating System: RedHat 7.3 PHP Version: 4.2.3 New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-10-25 04:12:45] [EMAIL PROTECTED] <?php $conn = ora_logon("scott","tiger"); echo $conn; echo ora_error($conn); $logoff=ora_logoff($conn); if ($logoff==false) { echo "<p>logoff is return false</p>"; } if ($logoff==true) { echo "<p>logoff is return true</p>"; } echo ora_error($conn); ?> The output is: Resource id #1ORA-00000: normal, successful completion logoff is return false Warning: ora_error(): 1 is not a valid Oracle-Connection/Cursor resource in /home/swxiao/public_html/logoff.php on line 12 I think that the return values of ora_logoff() is false when success logoff,but it should return true when success logoff. Is this a bug? Thanks! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20079&edit=1