ID: 38988 User updated by: wiggum24 at gmail dot com Reported By: wiggum24 at gmail dot com Status: Bogus Bug Type: MSSQL related Operating System: Redhat Enterprise Linux PHP Version: 5.1.6 New Comment:
correct php.ini, the ; character was removed. Nothing that silly :) Found it, I had a php extension that wasn't working properly. No settings were applying after the line that enabled it in php.ini, but php was still working fine and not throwing errors. Previous Comments: ------------------------------------------------------------------------ [2006-09-29 15:03:52] [EMAIL PROTECTED] Works fine here. Did you remove ; in front of the line? ------------------------------------------------------------------------ [2006-09-29 09:09:28] [EMAIL PROTECTED] >Trying to set mssql.datetimeconvert to Off in php.ini >doesn't work. >phpinfo() reports it as On, and the behaviour of the >recordset reflects the same. Which php.ini is used by PHP according to phpinfo()? Which php.ini did you change? Did you restart the web-server? ------------------------------------------------------------------------ [2006-09-29 06:47:39] wiggum24 at gmail dot com Description: ------------ Trying to set mssql.datetimeconvert to Off in php.ini doesn't work. phpinfo() reports it as On, and the behaviour of the recordset reflects the same. I've confirmed php is picking up the correct php.ini, and my php.ini contains no errors. Calling ini_set("mssql.datetimeconvert","Off"); before I do the query will set the value and the queries will return correctly. Reproduce code: --------------- No errors, the setting just doesn't apply. Expected result: ---------------- datetimes should appear as: 2006-07-20 16:32:00 Actual result: -------------- datetimes appear as: Jul 20 2006 04:32PM ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38988&edit=1