title: oci_bind_by_name buggy with TO_DATE SQL function
body: <p>I have a strange issue today related to the <code>oci_bind_by_name</code> function I use in PHP.</p>
  
  <p>Let me give you a showcase.</p>
  
  <p>Here is a table with simple dates:</p>
  
  <pre><code>create table test(col1 date);
  insert into test values(to_date('01/01/2009','DD/MM/YYYY'));
  insert into test values(to_date('01/01/2019','DD/MM/YYYY'));
  insert into test values(to_date('01/01/2029','DD/MM/YYYY'));
  insert into test values(to_date('01/01/2039','DD/MM/YYYY'));
  </code></pre>
  
  <p>Launching this query will result in 2 rows if I bind <code>:dt_maj_deb</code> and <code>:dt_maj_fin</code> to 01/01/2009 and 01/02/2019 for example:</p>
  
  <pre><code>SELECT * 
  FROM TEST 
  WHERE col1 BETWEEN TO_DATE (:dt_maj_deb, 'DD/MM/YYYY') 
                 AND TO_DATE (:dt_maj_fin, 'DD/MM/YYYY')
  
  Results
  -------
  01.01.2009          
  01.01.2019
  </code></pre>
  
  <p>So everything is as we may expect. My concern is when I want to launch the same query from PHP. Here is my test code:</p>
  
  <pre><code>$query = "SELECT * FROM TEST 
            WHERE col1 BETWEEN TO_DATE (:dt_maj_deb, 'DD/MM/YYYY')
                           AND TO_DATE (:dt_maj_fin, 'DD/MM/YYYY')";
  $stmt = oci_parse($conn,$query);
  $value = '01/01/2009';
  oci_bind_by_name($stmt,':dt_maj_deb',$value);
  $value = '01/02/2019';
  oci_bind_by_name($stmt,':dt_maj_fin',$value);
  oci_execute($stmt);
  oci_fetch_all($stmt, $result);
  var_dump($result);
  oci_free_statement($stmt);
  oci_close($conn);
  
  Results
  -------
  array(1) {
      ["COL1"]=&gt;
         array(0) {}
  }
  </code></pre>
  
  <p>What am I missing??</p>