Bug #80376 [NEW]: last day of the month causes runway cpu usage

From: Date: Tue, 17 Nov 2020 19:38:15 +0000
Subject: Bug #80376 [NEW]: last day of the month causes runway cpu usage
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230415@lists.php.net to get a copy of this message
From: mav2287 at aol dot com Operating system: OS X 10.11.6 El Capitan PHP version: 7.4.12 Package: Date/time related Bug Type: Bug Bug description:last day of the month causes runway cpu usage Description: ------------ As discovered and documented via the Mac Ports project ( see ticket url below ) php versions 7.3.23 & 7.4.11 and newer seem to create a process with runaway CPU usage when attempting to get the last day of the month. This runaway process seems to continue indefinitely and consumes 100% cpu. Orignal Mac Ports Ticket: https://trac.macports.org/ticket/61351 Test script: --------------- # php -a Interactive shell php > $date = new \DateTime(); php > $newDate = $date->modify('last day of this month'); php > var_dump($newDate); Expected result: ---------------- creation of a DateTime object and a blinking cursor awaiting new command Actual result: -------------- PHP will hang indefinitely and the php process will consume 100% cpu until manually killed -- Edit bug report at https://bugs.php.net/bug.php?id=80376&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80376&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80376&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80376&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80376&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80376&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80376&r=support Expected behavior: https://bugs.php.net/fix.php?id=80376&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80376&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80376&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80376&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80376&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80376&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80376&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80376&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80376&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80376&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80376&r=mysqlcfg

« previous php.bugs (#230415) next »