php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23699 mssql.datetimeconvert=0 option works randomly
Submitted: 2003-05-19 09:03 UTC Modified: 2003-05-19 09:49 UTC
From: tomasz at biznespolska dot pl Assigned:
Status: Closed Package: MSSQL related
PHP Version: 4.3.1 OS: windows xp sp1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tomasz at biznespolska dot pl
New email:
PHP Version: OS:

 

 [2003-05-19 09:03 UTC] tomasz at biznespolska dot pl
I'm using: 

PHP 4.3.1 (as a module)
Apache2.0.45 
MS SQL Server 2000 (compatibility mode 70)
Windows XP Pro

Option mssql.datetimeconvert seems to work only randomly. This simple script produces different results, when I reload page few times:

ini_set('mssql.datetimeconvert', 0);
$re = mssql_connect('GANYMEDE\GANYMEDE', 'user', 'pass');
mssql_select_db('bp');
ini_set('mssql.datetimeconvert', 0);
$sql = "SELECT TOP 10 addDate FROM c_content";
$re = mssql_query($sql);
$row = mssql_fetch_array($re);
ini_set('mssql.datetimeconvert', 0);

echo ($row['addDate']);

Once I get: "23 kwi 2003 14:11"
other time: "2003-04-23 14:11:09"

In this example addDate is datetime type.

Function phpinfo() tells that mssql.datetimeconvert = 0

I have tried to turn off option datetimeconvert in php.ini file, and using ini_set() function. 

When I run php as cgi turning off this option doesn't work at all.

Sorry for my english ;-)

Regards,
Tomasz Ulanowski

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-19 09:36 UTC] tomasz at biznespolska dot pl
Using:
PHP Version 4.3.2-RC3-dev
has solved problem.
 [2003-05-19 09:49 UTC] derick@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 06:01:32 2024 UTC