#43082 [NEW]: PHP exits without output on selecting null values

From: Date: Tue, 23 Oct 2007 13:24:03 +0000
Subject: #43082 [NEW]: PHP exits without output on selecting null values
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118871@lists.php.net to get a copy of this message
From: php at danielknell dot co dot uk Operating system: fedora7 PHP version: 5.2.4 PHP Bug Type: ODBC related Bug description: PHP exits without output on selecting null values 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 bug report at http://bugs.php.net/?id=43082&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43082&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43082&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43082&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43082&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43082&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43082&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43082&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43082&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43082&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43082&r=support Expected behavior: http://bugs.php.net/fix.php?id=43082&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43082&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43082&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43082&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43082&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43082&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43082&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43082&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43082&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43082&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43082&r=mysqlcfg

« previous php.bugs (#118871) next »