Open Diddyy opened 4 months ago
I'm pretty sure it was fixed, but I suspect the issue is that the MAX_REQUESTS
env variable might not be a part of the $_SERVER
variable. Maybe try:
$maxRequests = $_SERVER['MAX_REQUESTS'] ?? (getenv('MAX_REQUESTS') ?: 100);
Looking at a worker.php
file I have it does:
for ($nbRequests = 0, $running = true; $nbRequests < ($_SERVER['MAX_REQUESTS'] ?? 100) && $running; ++$nbRequests) {
// ...
}
I have the same result with:
Mode Worker : Yes
ENV:
APP_RUNTIME=Runtime\\FrankenPhpSymfony\\Runtime
FRANKENPHP_CONFIG=worker ./public/index.php
APP_ENV=dev
Application version:
ibexa/oss: 4.6.3
symfony: 5.4.39
Dockerfile
Work without worker mode
FROM dunglas/frankenphp:latest
RUN apt update && apt install -y graphicsmagick-imagemagick-compat
RUN install-php-extensions pdo_mysql gd imagick redis exif pcntl intl xsl zip opcache
Could this be related to #796 and the variable is going away after the first request? @dunglas
I have tried with the frankenphp-dev
Docker image with same result.
What happened?
Hey All!
Im trying to see if its possible to get Xenforo working with FrankenPHP.
This is my Caddyfile
This is my worker.php that I have tried to make to work well with Xenforo
However when I do
docker compose up
you can see from the logs what it spams in my console. I gather its an issue to do with the worker.php but I have no clue where to start to figure out what the issue may be?Any guidance would be greatly appreciated! :)
docker-composer.yml if its of any use
Build Type
Docker (Debian Bookworm)
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output