Edit report at https://bugs.php.net/bug.php?id=64611&edit=1
ID: 64611 Updated by: larue...@php.net Reported by: brandonkirsch at gmail dot com Summary: Segfault using ODBC with SQL Server "Native Client" -Status: Open +Status: Duplicate Type: Bug Package: ODBC related Operating System: Linux - OpenSuse 12.2 64-bit PHP Version: 5.5.0beta1 Block user comment: N Private report: N New Comment: dup to #61387 Previous Comments: ------------------------------------------------------------------------ [2013-04-08 14:54:53] brandonkirsch at gmail dot com Description: ------------ A segfault has existed in PHP since at least 5.2.17 when using ODBC with SQL Server Native Client driver. Selecting NULL values in a computed expression causes the segfault. I created a patch for this over a year ago and submitted the pull request here: https://github.com/php/php-src/pull/193 The pull request has not been accepted, so the segfault still exists even in 5.5.0beta2. Test script: --------------- <?php $conn = odbc_connect('Driver=SQL Server Native Client 11.0;server=xxx;uid=xxx;pwd=xxx;Database=xxx','',''); $query = odbc_exec($conn, 'select null'); $segfault = odbc_fetch_array($query); // segfault Expected result: ---------------- odbc_fetch_array to return a result rather than segfault. Actual result: -------------- segfault. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=64611&edit=1