Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP -> CLI has stopped working

Tags:

php

windows-7

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.

like image 484
Scott Evernden Avatar asked Nov 04 '09 06:11

Scott Evernden


2 Answers

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

More info: http://web2.0entrepreneur.com/31/cli-has-stopped-working-on-windows-vista.html

like image 126
Patrick Allaert Avatar answered Oct 30 '22 09:10

Patrick Allaert


PHP-CLI stops under these circumstances: Windows 7 64bit, PHP 5.6.8 64bit, only when Zend OpCache extension is ENABLED!!! Just edit php.ini and comment zend_extension=php_opcache.dll (with ; in front of it)

like image 31
1000Gbps Avatar answered Oct 30 '22 10:10

1000Gbps