Skip to content

Laravel 9 crashes Apache on PHP 8.1 #39716

@JackJohansson

Description

@JackJohansson
  • Laravel Version: 9.x-dev
  • PHP Version: 8.1.0RC6
  • Database Driver & Version: MySQL 8.0.23

Description:

I've recently installed the development version of Laravel to test some PHP 8.1 features, however I'm unable to get it to work while using apache.

Using php artisan serve works just fine, but Apache crashes with the exception code of Exception code: 0xc00000fd which is related to recursively calling an action with no exit. In PHP, it seems to be related to sending a header without calling exit();. Disabling cache won't help. I don't think the issue is related to the Blade engine, as I can't even terminate the app via a middleware/service provider ( die() or exit() does nothing ).

Steps To Reproduce:

  • Install the latest version of Apache, PHP and MySQL.
  • Try to install the latest Laravel version ( 9.x ) using composer.
  • Now, create a virtual host ( optional ) and access the URL via browser. There will be a Connection Reset error.
  • Check the system's event log ( I'm running Windows 11 ) and you will notice there's an error indicating that Apache has crashed. Also, you will get an error similar to this in your apache log: Parent: child process xxxx exited with status 255 -- Restarting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions