note 99054 deleted from function.date-parse by danbrown

From: Date: Sat, 24 Jul 2010 19:31:30 +0000
Subject: note 99054 deleted from function.date-parse by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171105@lists.php.net to get a copy of this message
Note Submitter: pulzarraider at gmial dot com ---- Be carefull when validating dateTime string with date_parse function. Php 5.3 has a bug in date_parse function. Any time starting with hour 24 return no warning or error. For example: date_parse('2010-1-1 24:00:00'); = no warning or error date_parse('2010-1-1 24:59:59'); = no warning or error date_parse('2010-1-1 25:00:00'); = error: Unexpected character

« previous php.notes (#171105) next »