|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2020-08-12 05:45 UTC] changochen1 at gmail dot com
Description: ------------ We found a memory leak in PHP. Please refer to the POC. Test script: --------------- <?php $f1 = fopen ( "php://input" , "r" ) ; $f2 = fopen ( 20, 10 , $a [ 1 ] [ 1 ] = 3409 , $f1 ) ; PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 12:00:01 2025 UTC |
It doesn't crash so I am not sure how to get a stacktrace. The log is: --- Fatal error: Uncaught TypeError: fopen(): supplied resource is not a valid Stream-Context resource in /home/yongheng/php_commit/php_poc44.php:4 Stack trace: #0 /home/yongheng/php_commit/php_poc44.php(4): fopen('20', '10', 3409, Resource id #7) #1 {main} thrown in /home/yongheng/php_commit/php_poc44.php on line 4 [Wed Aug 12 11:04:12 2020] Script: '/home/yongheng/php_commit/php_poc44.php' /home/yongheng/php_clean/Zend/zend_string.h(141) : Freeing 0x00007ffff2c58780 (56 bytes), script=/home/yongheng/php_commit/php_poc44.php === Total 1 memory leaks detected === --- How should I provide more details?