|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-08-21 14:08 UTC] s679160 at yandex dot ru
Description: ------------ Transfer bellow code form RH Linux 2.4.20-8smp+PHP 4.4.1 (cli) to RH Linux 2.6.18-8.1.4e15 + PHP 5.1.6 (cli) Zend 2.1.0 In the newer system strtotime() don't return ANY result (and error too). In the older system strtotime() return needed value. Is it strtotime problem or wrong algorythm ? Excuse my poor English ) Reproduce code: --------------- $base_day="2006-06-446"; echo "bd=$base_day\n"; $real_day=strtotime($base_day); echo "may_be_error=".strtotime($base_day)."\n"; echo "rd1=$real_day\n"; Expected result: ---------------- In the 1st system (older) echo is: bd=2006-06-446 may_be_error=1187557200 rd1=1187557200 Actual result: -------------- In the 2nd system (newer) echo is: bd=2006-06-446 may_be_error= rd1= PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 11:00:01 2025 UTC |
it returns false: derick@kossu:~$ php -r 'var_dump(Strtotime("2006-06-446"));' bool(false)