|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-01-15 20:53 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 22:00:01 2025 UTC |
<?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!