From:             cjbj at hotmail dot com
Operating system: n/a
PHP version:      4.3.5RC1
PHP Bug Type:     Documentation problem
Bug description:  Error return of OCILogon is not documented

Description:
------------
When OCILogon/OCIPLogon/OCINLogon fail, they return false.
This is currently not documented in:
http://www.php.net/manual/en/function.ocilogon.php
http://www.php.net/manual/en/function.ocinlogon.php
http://www.php.net/manual/en/function.ociplogon.php

A possible sentence to add to all three manual pages is:

  If connection is not successful, OCI[PN]Logon will fail and return
FALSE.



Reproduce code:
---------------
<?php

$con = OCILogon("myname", "notmypasswd", "mydb");
echo "Con is: ";
var_dump($con);

?>


Actual result:
--------------
Warning: ocilogon(): OCISessionBegin: ORA-01017: invalid
username/password; logon denied in c:\cj\php\cjbj\doc1.php on line 3
Con is: bool(false)

-- 
Edit bug report at http://bugs.php.net/?id=27015&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27015&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27015&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27015&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27015&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27015&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27015&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27015&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27015&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27015&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27015&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27015&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27015&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27015&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27015&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27015&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27015&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27015&r=float

Reply via email to