bref icon indicating copy to clipboard operation
bref copied to clipboard

[PHP-FPM] getcwd() will return '/'

Open Nyholm opened this issue 2 years ago • 0 comments

When using the PHP FPM layer, calling getcwd() will return "/". I would expect it to return "/var/task".

I will double check with the PSR-15 handler. I think that returns "/var/task". See https://github.com/brefphp/bref/blob/dcf224abb57bbb757091c2b3a73132f149295d9d/src/Event/Http/Psr7Bridge.php#L34

Nyholm avatar Sep 11 '21 23:09 Nyholm