php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41501 crash on date test 009.phpt
Submitted: 2007-05-25 18:02 UTC Modified: 2007-08-25 00:27 UTC
From: stas at zend dot com Assigned: stas (profile)
Status: Closed Package: Date/time related
PHP Version: 5.2.3RC1 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: stas at zend dot com
New email:
PHP Version: OS:

 

 [2007-05-25 18:02 UTC] stas at zend dot com
Description:
------------
php build 5.2.3rc1 crashes on date/tests/009.phpt on Windows. 
The line leading to the crash seems to be this one:

var_dump(strftime("%a %A %b %B %c %C %d %D %e %g %G %h %H %I %j %m %M %n %p %r %R %S %t %T %u %U %V %W %w %x %X %y %Y %Z %z %%", $t));



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-05-25 19:41 UTC] stas@php.net
Looks like it happens because Windows strftime doesn't understand many of the formats Unix one does _and_ on MSVC8 it is configured by default to throw an error (leading to DrWatson dialog) when invalid parameters are used.
 [2007-05-27 17:52 UTC] iliaa@php.net
Stas can you please identify which tokens does MSVC8 does not 
understand?
 [2007-05-27 18:10 UTC] stas@php.net
I think all those that are not in MSDN docs:

http://msdn2.microsoft.com/en-us/library/fe06s4ak(VS.71).aspx
 [2007-08-25 00:27 UTC] stas@php.net
This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.

I think the crash is gone, so closing it. Some formats are still not supported, but there's little we can do if MS library doesn't support it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC