From:             [EMAIL PROTECTED]
Operating system: RedHat 7.3
PHP version:      4.2.3
PHP Bug Type:     Oracle related
Bug description:  return valuse of ora_logoff() error

<?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 bug report at http://bugs.php.net/?id=20079&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20079&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20079&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20079&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20079&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20079&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20079&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20079&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20079&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20079&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20079&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20079&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20079&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20079&r=isapi

Reply via email to