#35499 [Asn->Csd]: strtotime with newline fails

From: Date: Thu, 01 Dec 2005 16:26:55 +0000
Subject: #35499 [Asn->Csd]: strtotime with newline fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89587@lists.php.net to get a copy of this message
 ID:               35499
 Updated by:       iliaa@php.net
 Reported By:      stabthecat at hotmail dot com
-Status:           Assigned
+Status:           Closed
 Bug Type:         Date/time related
 Operating System: Windows / Linux
 PHP Version:      5.1.1
 Assigned To:      iliaa
 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------

[2005-12-01 14:55:24] nlopess@php.net

http://mega.ist.utl.pt/~ncpl/php_35499_patch.txt

------------------------------------------------------------------------

[2005-12-01 01:22:59] stabthecat at hotmail dot com

Description:
------------
Since version 5.1

strtotime("11/20/2005 8:00 AM\r\n"); 

fails, and returns null

strtotime(trim("11/20/2005 8:00 AM\r\n")); 

fixes it




Reproduce code:
---------------
print(strtotime("11/20/2005 8:00 AM\r\n")); 


Expected result:
----------------
1132488000



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35499&edit=1


Thread (4 messages)

« previous php.bugs (#89587) next »