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 serv CLI stopped working #1006

Closed
deathart opened this issue Apr 28, 2018 · 4 comments
Closed

Php serv CLI stopped working #1006

deathart opened this issue Apr 28, 2018 · 4 comments

Comments

@deathart
Copy link
Contributor

deathart commented Apr 28, 2018

Good morning,

Here I've always had a problem with the php serv command that made me crash my command line

To avoid this problem I did it manually with this command :

php -S 127.0.0.1:8080 -t public/ ../rewrite.php

But since the RM #996

The php spark serve command still does the same thing to me, except that I have no idea to avoid this problem

And the only problem is I can't find a way to get an error output

I'm on windows 10 with php 7.1.13

Sorry about my English I use a translator

Translated with www.DeepL.com/Translator

@natanfelles
Copy link
Contributor

natanfelles commented Apr 29, 2018

Hi, I'm without a Windows machine at the moment.

Could you give an var_dump($rewrite);exit; on this line, run the spark serve, and check if the rewrite.php filepath is valid?

@deathart
Copy link
Contributor Author

deathart commented Apr 29, 2018

Yes filepath is valide

Edit: In fact by continuing var_dump the problem this causes at the require_once $fcpath . index.php'; in the rewrite.php file

@deathart
Copy link
Contributor Author

deathart commented Apr 29, 2018

In fact I just commented on my op_cache extension and I am no longer a problem, so when you enable opcache on php 7.1.13 with windows 10 there is a problem

composer/composer#6106

@lonnieezell
Copy link
Member

Good find! Thanks for the update.

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