#35414 [Csd]: strtotime() no longer works with ordinal suffix

From: Date: Thu, 05 Jan 2006 10:00:06 +0000
Subject: #35414 [Csd]: strtotime() no longer works with ordinal suffix
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-91533@lists.php.net to get a copy of this message
ID: 35414 User updated by: km at somehowbythesea dot org dot uk Reported By: km at somehowbythesea dot org dot uk Status: Closed Bug Type: Date/time related Operating System: Linux PHP Version: 5.1.1 Assigned To: derick New Comment: I understand. Thank you. Previous Comments: ------------------------------------------------------------------------ [2006-01-05 10:53:43] derick@php.net It's fixed in CVS, not in 5.1.1. You reported the bug in PHP 5.1.1, which we can not fix for you as it is released already. This fix is in PHp 5.1.2 (-dev), if you want to verify you need to try a snapshot. ------------------------------------------------------------------------ [2006-01-05 10:33:31] km at somehowbythesea dot org dot uk I neither believe in nor asked any questions about fixing sources by magic. I appreciate your time but not your sarcasm. ------------------------------------------------------------------------ [2006-01-05 10:13:30] sniper@php.net Fixed in CVS does not mean that we somehow magically fixed all released sources..grab a snapshot from http://snaps.php.net/ ------------------------------------------------------------------------ [2006-01-05 09:55:16] km at somehowbythesea dot org dot uk My apologies, Derick. On 'var_dump(strtotime("Sat 26th Nov 2005 18:18"));' I'm getting bool(false). 'echo date(DATE_ISO8601, strtotime("Sat 26th Nov 2005 18:18")), "\n";' gives 1969-12-31T19:00:00-0500. Does this imply my host has rebuilt PHP5.1.1 from the wrong source? Thank you for your quick response to my previous update. I really appreciate it. ------------------------------------------------------------------------ [2006-01-05 09:11:52] derick@php.net Works fine: derick@kossu:/dat/dev/php/php-5.1dev$ sapi/cli/php -v PHP 5.1.2RC2-dev (cli) (built: Jan 4 2006 11:24:53) (DEBUG) Copyright (c) 1997-2005 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2005 Zend Technologies derick@kossu:/dat/dev/php/php-5.1dev$ sapi/cli/php -r 'var_dump(strtotime("Sat 26th Nov 2005 18:18"));' int(1133025480) derick@kossu:/dat/dev/php/php-5.1dev$ sapi/cli/php -r 'echo date(DATE_ISO8601, strtotime("Sat 26th Nov 2005 18:18")), "\n";' 2005-11-26T18:18:00+0100 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35414 -- Edit this bug report at http://bugs.php.net/?id=35414&edit=1

« previous php.bugs (#91533) next »