Skip to content

In worker mode, $_REQUEST is incorrectly cached #1931

@phenixsoul

Description

@phenixsoul

What happened?

Laravel Octance
Configure the following a simple routes in Laravel:

Route::get('/test', function () {
    $foo = $_REQUEST['foo'] ?? 'null';
    return $foo;
});

The php.ini item:
auto_globals_jit = On // Default Configuration

1、Go to http://127.0.0.1:8000/test?foo=test1 //echo test1
2、Go to http://127.0.0.1:8000/test?foo=test2 //echo test1

But $_GET/$_POST is work.

When php.ini:
auto_globals_jit = Off

1、Go to http://127.0.0.1:8000/test?foo=test1 //echo test1
2、Go to http://127.0.0.1:8000/test?foo=test2 //echo test2

$_REQUEST is work.

Build Type

Docker (Debian Bookworm)

Worker Mode

Yes

Operating System

GNU/Linux

CPU Architecture

x86_64

PHP configuration

auto_globals_jit = On

Relevant log output

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