Bug #79263 [NEW]: finfo_buffer fails with "PHP Fatal error: Allowed memory size of"

From: Date: Wed, 12 Feb 2020 07:08:04 +0000
Subject: Bug #79263 [NEW]: finfo_buffer fails with "PHP Fatal error: Allowed memory size of"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225519@lists.php.net to get a copy of this message
From: anestis at fraganestis dot eu Operating system: Debian 9 PHP version: 7.4.2 Package: Unknown/Other Function Bug Type: Bug Bug description:finfo_buffer fails with "PHP Fatal error: Allowed memory size of" Description: ------------ finfo_buffer for the contents of a specific file (which I can provide but not make it completely public) fails with PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 138546568 bytes) Test script: --------------- function getBufferMime($buffer) { $h = finfo_open(FILEINFO_MIME); $mime = finfo_buffer($h, $buffer); finfo_close($h); return $mime; } -- Edit bug report at https://bugs.php.net/bug.php?id=79263&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79263&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79263&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79263&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79263&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79263&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79263&r=support Expected behavior: https://bugs.php.net/fix.php?id=79263&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79263&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79263&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79263&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79263&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79263&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79263&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79263&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79263&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79263&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79263&r=mysqlcfg

« previous php.bugs (#225519) next »