[php-src] Issue #8494: PHP 8.0.x require big file get 502 bad gateway

From: Date: Wed, 04 May 2022 19:37:50 +0000
Subject: [php-src] Issue #8494: PHP 8.0.x require big file get 502 bad gateway
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241411@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8494 Author: munggruel ### Description require '@openbmd.php'; in php-fpm envoriment , @openbmd.php is 184k big file PHP 7.0 run is right , after upgrade php 8.0.18, I get 502 bad gateway but foreach require "$libPath/$file"; is right in php 8.0.x foreach ($orderFiles as $file) { require "$libPath/$file"; } [@openbmd.zip](https://github.com/php/php-src/files/8626563/%40openbmd.zip) public static function loadCombineLib($libPath, $orderFiles = [], $useComb = false) { $libPath = rtrim($libPath, '/\\'); $libDir = basename($libPath); $libCombineFile = LIB_PATH . '_comb/@' . $libDir . '.php'; if ($useComb) { return (require $libCombineFile); } empty($orderFiles) && $orderFiles = self::getOrderFiles($libPath); foreach ($orderFiles as $file) { require "$libPath/$file"; } if (!is_file($libCombineFile)) { self::writeCombineLib($libPath, $orderFiles); } return false; } ### PHP Version PHP 8.0.X ### Operating System CentOS Linux release 7.6.1810 (Core)

« previous php.bugs (#241411) next »