r/PHPhelp • • Apr 21 '21

Solved php script in windows console just stops sometimes

Hello,

A very strange bug that i can't understand. When I run script in Windows 10 console (or in PHP Storm ide console, doesn't matter) it just stops randomly at the middle of the execution, no errors no warnings, then I press ENTER and it continues working like nothing happened. This happens in maybe 5-10% of cases.

What is that? )) Thank you!

13 Upvotes

6 comments sorted by

4

u/evohans Apr 21 '21

This happens to me as well, it's likely CLI (possibly powershell?) has "Insert Mode" and "QuickEdit Mode" enabled, uncheck these boxes and save: https://i.imgur.com/pkw17bp.png

1

u/TwoMovies Apr 21 '21

thank you, I will test.. I knew it wasn't php issue

1

u/evohans Apr 21 '21

note: this isn't a 100% fix, but it does appear to be a hangup. I code a lot in python as well and have this issue from time to time

1

u/garlicweiner Apr 21 '21

Did anyone else click the Cancel button on that image?

0

u/bla4free Apr 21 '21

Is there nothing in the php error log?