title: PHP causes segmentation fault when executing an mssql_query
body: <p>I have a shell program that loops a PHP script. The PHP script is long and has many includes and defined functions, but one function calls </p>
  
  <pre><code>$result_sql = mssql_query($sql);
  </code></pre>
  
  <p>The $sql code is executed in MSSQL query analyzer and runs successfully. The function, when called independently from a small php script works. When adding it to the large script, PHP errors with a segmentation fault. How would one troubleshoot the segmentation fault? PHP usually displays errors encountered when display_errors(); is set to E_NOTICE, but no error description is displayed when PHP segfaults.</p>
  
  <p>Thanks for any advice.</p>