Simon Angatia
Simon Angatia

Reputation: 860

Laravel Installation Error: [ErrorException] file_get_contents(): read of 8192 bytes failed with errno=9 Bad file descriptor

I am setting up Laravel development environment on a new PC and everything is installed correctly, which is XAMPP, NODE JS, and Composer. However, when I try installing Laravel either through the Laravel installer or through the composer, I get an error that says: [ErrorException] file_get_contents(): read of 8192 bytes failed with errno=9 Bad file descriptor. I have tried to search for an answer on StackOverflow and got only one option but it didn't work for me. Could someone be willing to help me detect where the problem is? Thank you in advance. (Laravel version 7).

Upvotes: 0

Views: 5770

Answers (2)

Dani_121
Dani_121

Reputation: 1

Use PHP version 7.3.28 or below, it will work 100%.

Upvotes: 0

Jitesh Dhamaniya
Jitesh Dhamaniya

Reputation: 1418

i did a quick search and seems its a bug in PHP 7.4, should work well in PHP 7.3. https://bugs.php.net/bug.php?id=79166

Which version you using ?, you can check using phpinfo(); or this Find PHP version on windows command line

Upvotes: 2

Related Questions