title: PDO OCI: Success with Info exception
body: <p>Using PHP 5.5.9 with PDO_OCI, Oracle 12.1. I'm getting an OCI_SUCCESS_WITH_INFO message that the password will expire soon. However, since it is thrown as an exception by PDO, the connection is not being established. How can I ignore the exception when it is just a warning or informational message?</p>
  
  <p>Here is the error message:</p>
  
  <blockquote>
    <p>Database Connection failed: SQLSTATE[HY000]: OCISessionBegin:
    OCI_SUCCESS_WITH_INFO: ORA-28002: the password will expire within 41
    days</p>
  </blockquote>
  
  <p>Followed by:</p>
  
  <blockquote>
    <p>Fatal error: Call to a member function setAttribute() on a non-object in /htdocs/ciatools_dev/promise/Classes/PromiseVars.php on line 257</p>
  </blockquote>
  
  <p>And the code that produces it:</p>
  
  <pre><code>try {
      $this-&gt;dbconn = new PDO("oci:dbname=$dbwc",'username', 'password');
  } catch (PDOException $e) {
      echo 'Database Connection failed: ' . $e-&gt;getMessage();
  }
  
  $this-&gt;dbconn-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  </code></pre>