Skip to content

Loading…

DBAL-17: E_STRICT error in Doctrine\DBAL\Driver\OCI8\Driver::_constructDsn() #1329

Closed
doctrinebot opened this Issue · 5 comments

2 participants

@doctrinebot

Jira issue originally created by user eriksencosta:

I get an ESTRICT 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).

@doctrinebot

Comment created by @beberlei:

is specifying the database name optional during connection to oracle databases? otherwise we could also throw an exception.

@doctrinebot

Comment created by eriksencosta:

It's optional, according to http://php.net/oci_connect:

"If not specified, PHP uses environment variables such as TWOTASK (on Linux) or LOCAL (on Windows) and ORACLESID 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.

@doctrinebot

Comment created by @beberlei:

fixed anyways

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label
@beberlei beberlei was assigned by doctrinebot
@doctrinebot doctrinebot added this to the 2.0.0-BETA3 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.