Doc #51538 [Opn]: strptime() buggy prior PHP 5.2.0

From: Date: Tue, 10 Aug 2010 17:13:39 +0000
Subject: Doc #51538 [Opn]: strptime() buggy prior PHP 5.2.0
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4833@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51538&edit=1 ID: 51538 Updated by: philip@php.net Reported by: alex dot schuch at gmx dot de Summary: strptime() buggy prior PHP 5.2.0 Status: Open Type: Documentation Problem Package: Documentation problem Operating System: irrelevant? PHP Version: Irrelevant Block user comment: N New Comment: Surely it's not "random", so is there some logic behind these incorrect [and seemingly random] values prior to 5.2.0? Or maybe we could use the word 'undefined' instead. Thoughts? The changelog entry is "strptime() does not initialize the internal date storage structure" although I'm unsure exactly what that means. Previous Comments: ------------------------------------------------------------------------ [2010-04-12 11:10:58] alex dot schuch at gmx dot de Description: ------------ A note should be added to strptime() documentation, as the function is not working according to the documentation before PHP 5.2.0. http://bugs.php.net/38524 http://php.net/ChangeLog-5.php Maybe something like: Prior PHP 5.2.0, strptime() returns random values for parts not included in the format string (see bug #38524). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51538&edit=1

« previous php.doc.bugs (#4833) next »