Bug #79951 [NEW]: Memory leak in zend_string

From: Date: Mon, 10 Aug 2020 22:31:32 +0000
Subject: Bug #79951 [NEW]: Memory leak in zend_string
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228498@lists.php.net to get a copy of this message
From: changochen1 at gmail dot com Operating system: PHP version: 8.0Git-2020-08-10 (Git) Package: Scripting Engine problem Bug Type: Bug Bug description:Memory leak in zend_string Description: ------------ We found a memory leak in PHP. Please refer to the POC. Test script: --------------- <? $a = array ( 4 , 1 , $a , 1 , 1.500000 , 7 , false , 'x' , 'x' , 500 ) ; foreach ( $a as $b ) str_replace ( $GLOBALS , $a , $a ) ; -- Edit bug report at https://bugs.php.net/bug.php?id=79951&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79951&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79951&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79951&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79951&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79951&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79951&r=support Expected behavior: https://bugs.php.net/fix.php?id=79951&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79951&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79951&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79951&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79951&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79951&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79951&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79951&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79951&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79951&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79951&r=mysqlcfg

« previous php.bugs (#228498) next »