|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-11 10:47 UTC] jani@php.net
[2009-07-29 17:40 UTC] derick@php.net
[2010-02-10 16:23 UTC] svn@php.net
[2010-02-11 11:11 UTC] svn@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 08:00:02 2025 UTC |
Description: ------------ Feeding a decimal value to DateTime's modify() function can cause very long execution times because the decimal point is ignored. Reproduced on the php5.3-200808200230 snapshot. Reproduce code: --------------- $date = new DateTime(); $date->modify("+1.61538461538 day"); Expected result: ---------------- A warning or exception, or perhaps 1 day + 0.61538461538*24 hours added. Actual result: -------------- after 32 seconds of execution, 161538461538 days are added to the date