Bug #78103 [NEW]: Allocating ~2TB memory after PHP_FCGI_CHILDREN-th request

From: Date: Tue, 04 Jun 2019 12:07:09 +0000
Subject: Bug #78103 [NEW]: Allocating ~2TB memory after PHP_FCGI_CHILDREN-th request
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221109@lists.php.net to get a copy of this message
From: hardaqa at gmail dot com Operating system: Windows 10 v1809 64bit PHP version: 7.2.19 Package: CGI/CLI related Bug Type: Bug Bug description:Allocating ~2TB memory after PHP_FCGI_CHILDREN-th request Description: ------------ Using Apache 2.4 via mod_proxy to connect to php. PHP's using PHP_FCGI_CHILDREN to manage workers pool, opcache enabled. After n-th request (n = PHP_FCGI_CHILDREN) to test.php script, php throws "Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 2052604301400 bytes)" Does not occur with either opcache disabled, PHP_FCGI_CHILDREN=0 or 7.2.18 and other versions of php. Test script: --------------- # run.cmd SET PHP_FCGI_CHILDREN=4 php-cgi.exe -b 127.0.0.1:9000 # test.php <?php $i = 1; define('test' . $i, 'frewgfrwfrwfg43gt53hgt5ege5wqh4g5q4w'); -- Edit bug report at https://bugs.php.net/bug.php?id=78103&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78103&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78103&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78103&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78103&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78103&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78103&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78103&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78103&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78103&r=support Expected behavior: https://bugs.php.net/fix.php?id=78103&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78103&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78103&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78103&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78103&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78103&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78103&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78103&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78103&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78103&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78103&r=mysqlcfg

« previous php.bugs (#221109) next »