#27015 [Asn->Csd]: Error return of OCILogon is not documented
| From: | tony2001@php.net | Date: | Wed, 24 Mar 2004 07:13:46 +0000 |
| Subject: | #27015 [Asn->Csd]: Error return of OCILogon is not documented | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969359737@lists.php.net to get a copy of this message | ||
ID: 27015
Updated by: tony2001@php.net
Reported By: cjbj at hotmail dot com
-Status: Assigned
+Status: Closed
Bug Type: Documentation problem
Operating System: n/a
PHP Version: 4.3.5RC1
Assigned To: tony2001
New Comment:
New docs are available at php.net.
Feel free to send your comments.
Previous Comments:
------------------------------------------------------------------------
[2004-01-23 02:27:05] tony2001@php.net
I'm rewriting OCI8 documentation ATM.
It will be done in about a week.
Thanks for noticing this.
------------------------------------------------------------------------
[2004-01-22 22:56:38] cjbj at hotmail dot com
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 this bug report at http://bugs.php.net/?id=27015&edit=1