php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7516 date() routine seems to cause CGI crash
Submitted: 2000-10-28 14:16 UTC Modified: 2000-10-30 13:17 UTC
From: wls at wwco dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.2 OS: NT 2000 SP 1
Private report: No CVE-ID: None
 [2000-10-28 14:16 UTC] wls at wwco dot com
The following code simplified code example causes
the PHP.EXE (cgi-version) to hang IIS on my NT 2000 box:

$x = md5( date("aABdDFgGhHiIjlLmMnsStUwYyzZ" );

Note that calling md5() without using the date()
function works just fine.  So I don't know if this
is an error in date when it tries to generate such
a long date/time string, or whether it is the 
intermediate string value being passed to md5()
that is causing it to hoze up.  

To recover, one has to stop IIS and restart it.

I was using the 4.0.2 Win32 binary version from your
download section.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-30 13:17 UTC] dbeu@php.net
i'm unable to reprodue this, so closing.
btw you you shouldn't do that, there are *much* better algorithms to generate a unique id.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jul 14 22:00:01 2026 UTC