Issue Details (XML | Word | Printable)

Key: DBAL-17
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Benjamin Eberlei
Reporter: Eriksen Costa
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Doctrine DBAL

E_STRICT error in Doctrine\DBAL\Driver\OCI8\Driver::_constructDsn()

Created: 05/Jun/10 09:22 PM   Updated: 28/Jun/10 04:51 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0.0-BETA3

File Attachments: 1. File patch.diff (0.9 kB)

Environment: MacOS X 10.5, PHP 5.3.2


 Description  « Hide
I get an E_STRICT error in Doctrine\DBAL\Driver\OCI8\Driver::_constructDsn() because I forgot to set a 'dbname' key in the params array to Doctrine\DBAL\DriverManager.

My Doctrine is a svn checkout, from 2.0.0-beta1 tag.

A patch is attached (patch -p0 < patch.diff on project root).



 All   Comments   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Benjamin Eberlei added a comment - 06/Jun/10 08:50 AM
is specifying the database name optional during connection to oracle databases? otherwise we could also throw an exception.

Eriksen Costa added a comment - 06/Jun/10 01:39 PM
It's optional, according to <http://php.net/oci_connect>:

"If not specified, PHP uses environment variables such as TWO_TASK (on Linux) or LOCAL (on Windows) and ORACLE_SID to determine the Oracle instance to connect to."

I just spotted the error, I don't have an Oracle database neither the oci8 extension in my machine.


Benjamin Eberlei added a comment - 28/Jun/10 04:51 PM
fixed anyways