Bug #72024 [NEW]: microtime() leaks memory

From: Date: Thu, 14 Apr 2016 14:34:26 +0000
Subject: Bug #72024 [NEW]: microtime() leaks memory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200547@lists.php.net to get a copy of this message
From:             maroszek at gmx dot net
Operating system: Windows 10 x64
PHP version:      5.6.20
Package:          Date/time related
Bug Type:         Bug
Bug description:microtime() leaks memory

Description:
------------
Just run the script and watch the memory consumption rise. It goes way
beyond the specified memory limit, therefore i suspect a simple memory
leak.

Not reproducable on 7.0.x. 
Not reproducable on 5.4.x.

Bug must have been introduced with PHP 5.5. This is the first affected
version.

Test script:
---------------
<?

while(true) { microtime(); }

Expected result:
----------------
Steady memory consumption.

Actual result:
--------------
Right before max_execution_time occurs, php.exe is consuming a few
hundred megabytes of RAM.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=72024&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=72024&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=72024&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=72024&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=72024&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=72024&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=72024&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=72024&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=72024&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=72024&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=72024&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=72024&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=72024&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=72024&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72024&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=72024&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=72024&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=72024&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72024&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=72024&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=72024&r=mysqlcfg



Thread (6 messages)

« previous php.bugs (#200547) next »