PHP -> CLI has stopped working

I recently installed Windows 7 on my desktop and the following problem has begun occuring:

I regularly run some PHP scripts from the commandline that are now giving this error in a popup window:

CLI has stopped working.

I cancel this and my script terminates. Not good…

I’ve googled around and tried most of the few ideas suggested but still i am plagued by this annoyance. Right now it appears to regularly occur when I do a file_get_contents() of a url pointing to an image file. Only happens when the url is http protocol, works fine for ftp files. It also happens spuriously doing other things as well.

This is PHP 5.3.0 as distributed in a xampp 1.7.2 .zip. All exe’s and dll’s have been unblocked by copying thru FAT32 and back.

hints from anyone who’s cracked this would be most helpful.

Incoming search terms:

  • cli parou de funcionar
  • cli dejo de funcionar

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

3 Responses to PHP -> CLI has stopped working

  1. Patrick Allaert says:

    Try updating your PHP version bundled with xampp. You might have to update some php_XXX.dll extension files.

    More info:

  2. Craig says:

    The solution for me was to stop using PHP 5.3.0 and go back to 5.2.11. Once I did this the “CLI has stopped working” issue disappeared.

  3. sammy says:

    I have the same issue with Windows 7 Professional.
    My Apache Server has no problem finding and executing PHP within my web application but the command line execution gives the infamous message “CLI has stopped working.”
    The User Account Settings seem to allow executions.
    Perl has no problem.

    I always have to take my code to an XP machine and run it there to debug it.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>