From:             [EMAIL PROTECTED]
Operating system: Linux 2.4
PHP version:      4.3.0
PHP Bug Type:     MSSQL related
Bug description:  mssql.datetimeconvert=0 gets wrong month

>>When using this:

$c = mssql_connect("172.16.0.1:1433", "hn", "hn");
mssql_select_db("hn");
$r = mssql_query("select * from hn.employee");
print_r(mssql_fetch_array($r));

>>I get this(as expected):
Array ( [0] => M4398648MG [id] => M4398648MG [1] => FRED [nome] => FRED
[2] => 105 roadhouse, av [addr] => 105 roadhouse, av [3] => NY [city] =>
NY [4] => NY [state] => NY [5] => 70272 [zip] => 70272 [6] => 280876 [id2]
=> 280876 [7] => FRED [nick] => FRED [8] => Mar 17 1973 12:00AM [birth] =>
Mar 17 1973 12:00AM ) 
 
>>When using this:
ini_set('mssql.datetimeconvert',0);
$c = mssql_connect("172.16.0.1:1433", "hn", "hn");
mssql_select_db("hn");
$r = mssql_query("select * from hn.employee");
print_r(mssql_fetch_array($r));

>>I get a wrong month number (02 instead of 03):
Array ( [0] => M4398648MG [id] => M4398648MG [1] => FRED [nome] => FRED
[2] => 105 roadhouse, av [addr] => 105 roadhouse, av [3] => NY [city] =>
NY [4] => NY [state] => NY [5] => 70272 [zip] => 70272 [6] => 280876 [id2]
=> 280876 [7] => FRED [nick] => FRED [8] => 1973-02-17 00:00:00 [birth] =>
1973-02-17 00:00:00 ) 


-- 
Edit bug report at http://bugs.php.net/?id=22060&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22060&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22060&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22060&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22060&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22060&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22060&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22060&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22060&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22060&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22060&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22060&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22060&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22060&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22060&r=gnused

Reply via email to