#43082 [Opn->Fbk]: PHP exits without output on selecting null values

From: Date: Thu, 25 Oct 2007 12:46:05 +0000
Subject: #43082 [Opn->Fbk]: PHP exits without output on selecting null values
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118938@lists.php.net to get a copy of this message
ID: 43082 Updated by: jani@php.net Reported By: php at danielknell dot co dot uk -Status: Open +Status: Feedback Bug Type: ODBC related Operating System: fedora7 PHP Version: 5.2.4 New Comment: Try running the script on command line to see if it actually crashes. Previous Comments: ------------------------------------------------------------------------ [2007-10-23 13:34:04] php at danielknell dot co dot uk this was with freetds 0.64 and mssql server 2005 ------------------------------------------------------------------------ [2007-10-23 13:24:02] php at danielknell dot co dot uk Description: ------------ when trying to do a select query that returns a null value from mssql over the odbc extention (both native and pdo) php exits without returning any output, this seems to happen both for values set to null and for failed left join's. Reproduce code: --------------- <?php $db = odbc_connect('xfndevdb1_regsub', 'webdev', 'H4rdkn0ck'); $result = odbc_exec($db, 'select null as x;'); var_dump(odbc_fetch_array($result)); echo 'end'; Expected result: ---------------- array(1) { ['x']=> NULL } end Actual result: -------------- nothing, even if one tries to echo before the database code. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43082&edit=1

« previous php.bugs (#118938) next »