Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8.0.x require big file get 502 bad gateway #8494

Closed
munggruel opened this issue May 4, 2022 · 3 comments
Closed

PHP 8.0.x require big file get 502 bad gateway #8494

munggruel opened this issue May 4, 2022 · 3 comments
Labels

Comments

@munggruel
Copy link

munggruel commented May 4, 2022

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
@openbmd.zip

but foreach require "$libPath/$file"; is right in php 8.0.x

foreach ($orderFiles as $file) {
        require "$libPath/$file";
}


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)

@iluuu1994
Copy link
Member

502 is the error from your webserver but it's not particularly helpful. Can you find any logs from your php-fpm log or apache log, depending on what you're using?

@github-actions
Copy link

No feedback was provided. The issue is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so. Thank you.

@munggruel
Copy link
Author

have solved ,because 7.0 to 8.0 500 error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants