php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #27015 Error return of OCILogon is not documented
Submitted: 2004-01-22 22:56 UTC Modified: 2004-03-24 02:13 UTC
From: cjbj at hotmail dot com Assigned: tony2001 (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.3.5RC1 OS: n/a
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cjbj at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-01-22 22:56 UTC] 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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-23 02:27 UTC] tony2001@php.net
I'm rewriting OCI8 documentation ATM.
It will be done in about a week.
Thanks for noticing this.

 [2004-03-24 02:13 UTC] tony2001@php.net
New docs are available at php.net.
Feel free to send your comments.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Nov 22 04:00:01 2025 UTC