note 87075 deleted from function.strtotime by thiago

From: Date: Tue, 18 Nov 2008 20:19:15 +0000
Subject: note 87075 deleted from function.strtotime by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-146660@lists.php.net to get a copy of this message
Note Submitter: harmor ---- Looks like another change to the return of strToTime between version 5.2.5 and 5.2.6: <?php var_dump(PHP_VERSION); //string(5) "5.2.6" var_dump(strToTime('0000-00-00')); //int(-62169955200) var_dump(strToTime('00:00:00')); //same as strToTime() @ midnight var_dump(strToTime('0000-00-00 00:00:00')); //int(-62169955200) var_dump(strToTime('0000-00-00 00:00:00 GMT')); //int(-62169984000) ?> vs. 5.2.5 <?php var_dump(PHP_VERSION); //string(5) "5.2.5" var_dump(strToTime('0000-00-00')); //bool(false) var_dump(strToTime('00:00:00')); //same as strToTime() @ midnight var_dump(strToTime('0000-00-00 00:00:00')); //bool(false) var_dump(strToTime('0000-00-00 00:00:00 GMT')); //bool(false) ?>

« previous php.notes (#146660) next »