title: Segmentation fault when odbc_fetch special characters on CLI only
body: <p>I'm working on a debian server with php 7.0. My php code gets data using an odbc connection and then push them in another mysql database.</p>
  
  <p>When I'm running my php script in a browser, there is no issue. When I'm running it in CLI, I get a segmentation fault at the "odbc_fetch_array" line when a data with special characters comes. I don't understand where does the problem come from.
  Thanks for your help</p>
  
  <p>DB2 Data base example [id, name]:</p>
  
  <pre><code>Line 1 : [1,John]   //will work
  Line 2 : [2,Stéphanie]  //will fail
  </code></pre>
  
  <p>Phy Script :</p>
  
  <pre><code>$rs=odbc_exec($conn,$strQuery);
  
  while($row = odbc_fetch_array($rs)) {
      $strSqlInsert = 'INSERT into....VALUES($row-&gt;name,.....)';
      $rConnexionDwh-&gt;exec($strSqlInsert);
      unset($row);
  }
  </code></pre>