Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-17

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-BETA3
    • Component/s: None
    • Labels:
      None
    • Environment:
      MacOS X 10.5, PHP 5.3.2

      Description

      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).

      1. patch.diff
        0.9 kB
        Eriksen Costa

        Activity

        Hide
        Benjamin Eberlei added a comment -

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

        Show
        Benjamin Eberlei added a comment - is specifying the database name optional during connection to oracle databases? otherwise we could also throw an exception.
        Hide
        Eriksen Costa added a comment -

        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.

        Show
        Eriksen Costa added a comment - 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.
        Hide
        Benjamin Eberlei added a comment -

        fixed anyways

        Show
        Benjamin Eberlei added a comment - fixed anyways

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Eriksen Costa
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: