#38502 [NEW]: mssql_fetch_Assoc result error (date type field)

From: Date: Fri, 18 Aug 2006 15:28:54 +0000
Subject: #38502 [NEW]: mssql_fetch_Assoc result error (date type field)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100962@lists.php.net to get a copy of this message
From: kecso at i-trade dot hu Operating system: debian PHP version: 5.1.5 PHP Bug Type: MSSQL related Bug description: mssql_fetch_Assoc result error (date type field) Description: ------------ Hi! MYSQL version: MySQL 5.0.22-Debian_1.dotdeb.1-log PHP version: PHP Version 5.0.5-Debian-0.8~sarge1 (Debian GNU/Linux) After fetching data, the date was 1 month lesser than the current system date. Tested with SQL Query Analyzer the date was correct. If converted the date, was correct... "SELECT convert(varchar(50), getdate(), 102)" Best regards: Kecso Reproduce code: --------------- $r = mssql_query("SELECT getDate();"); print_r(mssql_fetch_Assoc($r)); Expected result: ---------------- " Array ( [computed] => 2006-08-18 17:07:05 ) " Actual result: -------------- " Array ( [computed] => 2006-07-18 17:07:05 ) " -- Edit bug report at http://bugs.php.net/?id=38502&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38502&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38502&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38502&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38502&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38502&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38502&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38502&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38502&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38502&r=support Expected behavior: http://bugs.php.net/fix.php?id=38502&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38502&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38502&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38502&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38502&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38502&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38502&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38502&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38502&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38502&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38502&r=mysqlcfg

« previous php.bugs (#100962) next »