Skip to content

[worker-mode] blank page #2533

Description

@sa-tasche

What happened?

I get a blank page.

I use the worker example

<?php
function getCounter(): int {
    static $count = 0;
    return ++$count; // Increments across requests!
}

$handler = static function () {
    echo getCounter(); // 1, 2, 3, ... for each request on this thread
};

while (\frankenphp_handle_request($handler)) {
    // ...
}

Build Type

Static binary

Worker Mode

Yes

Operating System

GNU/Linux

CPU Architecture

x86_64

PHP configuration

phpinfo() output
(How?)

Relevant log output

Relevant log output
{
    "level":"info",
    "ts":1784557298.5655265,
    "logger":"http.log.access",
    "msg":"NOP",
    "request":{
        "remote_ip":"127.0.0.1",
        "remote_port":"45762",
        "client_ip":"127.0.0.1",
        "proto":"HTTP/1.1",
        "method":"GET",
        "host":"app.mitgedanken.eu",
        "uri":"/favicon.ico",
        "headers":{
            "Referer":[
                "https://app.mitgedanken.eu/"
            ],
            "Sec-Fetch-Dest":[
                "image"
            ],
            "Sec-Ch-Ua":[
                "\"Not;A=Brand\";v=\"8\", \"Chromium\";v=\"150\", \"Microsoft Edge\";v=\"150\""
            ],
            "Accept-Encoding":[
                "gzip, deflate, br, zstd"
            ],
            "User-Agent":[
                "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36 Edg/150.0.0.0"
            ],
            "Sec-Fetch-Mode":[
                "no-cors"
            ],
            "Via":[
                "3.0 Caddy"
            ],
            "X-Forwarded-For":[
                "46.83.242.243"
            ],
            "X-Forwarded-Proto":[
                "https"
            ],
            "Accept":[
                "image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8"
            ],
            "Sec-Ch-Ua-Mobile":[
                "?0"
            ],
            "Sec-Fetch-Site":[
                "same-origin"
            ],
            "X-Forwarded-Host":[
                "app.mitgedanken.eu"
            ],
            "Accept-Language":[
                "en-GB,en-US;q=0.9,en;q=0.8,de-DE;q=0.7,de;q=0.6"
            ],
            "Priority":[
                "u=1, i"
            ],
            "Dnt":[
                "1"
            ],
            "Sec-Ch-Ua-Platform":[
                "\"Windows\""
            ]
        }
    },
    "bytes_read":0,
    "user_id":"",
    "duration":0.000029183,
    "size":0,
    "status":0,
    "resp_headers":{
        "Server":[
            "FrankenPHP Caddy"
        ]
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions