title: php call to oci_execute in try catch block
body: <p>Here is my code:</p>
  
  <pre><code>try
  {
      oci_execute($command);
  }
  catch(Exception $e){
      $this-&gt;sendMailFunction($e);
  }
  </code></pre>
  
  <p>where <code>$command</code> is a Oracle SQL Query. My Question is, if the query fails, the control is not going into the catch block. Why is it so?
  I am using yii framework of php.</p>