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.4 JIT causes failure in Laravel Sail: Failed to extract the request port #765

Open
iwasherefirst2 opened this issue Dec 17, 2024 · 2 comments

Comments

@iwasherefirst2
Copy link

iwasherefirst2 commented Dec 17, 2024

Sail Version

1.39.1

Laravel Version

11.36.0

PHP Version

8.4

Operating System

Linux

OS Version

Ubuntu 24.04.1 LTS

Description

When installing Laravel with Sail, the Sail container fails to start due to a conflict with the PHP JIT and third-party extensions. The conflict seems to be with PHP JIT and PHP 8.4. This results in an error during the startup process, specifically in parsing the port.

Observed behavior:

InvalidArgumentException  
Failed to extract the request port. Ensure the log line contains a valid port:  
[Tue Dec 17 20:19:34 2024] PHP Warning: JIT is incompatible with third-party extensions that override zend_execute_ex(). JIT disabled. in Unknown on line 0

Workaround
Switching to PHP 8.2 by updating docker-compose.yml fixes the issue.

Steps To Reproduce

curl -s "https://laravel.build/example-app?with=mysql" | bash
cd example-app
./vendor/bin/sail up

@emmpaul
Copy link

emmpaul commented Dec 17, 2024

I have the same issue. Its was working recently though

@fscaptain
Copy link

Same issue to me

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

No branches or pull requests

3 participants