You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
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
The text was updated successfully, but these errors were encountered: