#27015 [Opn->Asn]: Error return of OCILogon is not documented

From: Date: Fri, 23 Jan 2004 07:27:05 +0000
Subject: #27015 [Opn->Asn]: Error return of OCILogon is not documented
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969358397@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: Open +Status: Assigned Bug Type: Documentation problem Operating System: n/a PHP Version: 4.3.5RC1 -Assigned To: +Assigned To: tony2001 New Comment: I'm rewriting OCI8 documentation ATM. It will be done in about a week. Thanks for noticing this. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc (#969358397) next »