Bug #80373 [NEW]: Memory leak in big array of strings

From: Date: Mon, 16 Nov 2020 01:27:22 +0000
Subject: Bug #80373 [NEW]: Memory leak in big array of strings
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230374@lists.php.net to get a copy of this message
From:             p30neo at gmail dot com
Operating system: CentOS 7
PHP version:      7.4.12
Package:          Arrays related
Bug Type:         Bug
Bug description:Memory leak in big array of strings

Description:
------------
There is Memory leak when we do any string operation in big loops with
an array.


Test script:
---------------
Example 1 (Normal):
http://sandbox.onlinephpfunctions.com/code/f597ef30c9f326be47e5822f4276b35a3efa8e86
We have about 66 MB RAM Usage.
----------------
Example 2 (Memory leak):
http://sandbox.onlinephpfunctions.com/code/af719f898c102cdb12d197d06119b05a6765f65d
here we get an error and It will use more than 128MB in this example.
(in example 2 : when we reexecute more times , the memory usage will
dcreasing...)


Expected result:
----------------
I expected no memory usage diffrence between those two examples.


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


Thread (2 messages)

« previous php.bugs (#230374) next »