Page 1 of 1

PHP CLI crashing on Vista

PostPosted: 13. May 2007 18:38
by jrhoades

I am using xampp 1.6.1 on Windows Vista Ultimate.

Every time I use the PHP CLI it performs the task but then the cmd windows freezes and a windows 'php cli has stopped responding' box appears. I then close this box (using the red cross rather than terminating the application) and I can carry on as if nothing has happened!

Although it is possible to use the cli, it is very annoying. I can only guess that the php cli is appearing to crash to windows, but not actually crashing.

(Typically I am running PEAR commands eg pear upgrade-all and I have UAC turned off)

Any help greatly appreciated.

Regards Jon

PostPosted: 13. May 2007 19:01
by Wiedmann
1st. I don't know anything about PHP-CLI on Vista (or Vista itself).

Typically I am running PEAR commands eg pear upgrade-all and I have UAC turned off

The PEAR command line tool is not really usable in XAMPP.
If you need and work with PEAR, I can only recommend to delete the one from XAMPP and make a clean PEAR installation.

PostPosted: 13. May 2007 19:08
by Wiedmann
One additional question:
Every time I use the PHP CLI

- How did you use the CLI?
- What happens if you open a command shell, "cd" to the php directory and execute "php -n -i"

PostPosted: 13. May 2007 19:18
by jrhoades

Thanks for the advice about PEAR, I have now installed it direct, but I'm still getting the crash dialog - for instance I got when doing "php go-pear.bat", so I am pretty sure it's a PHP CLI issue.

Regards Jon

PostPosted: 13. May 2007 19:21
by Wiedmann
What's about my other question?

PostPosted: 13. May 2007 19:44
by jrhoades

Sorry missed your other question - 'php -n -i' did also end up crashing.

I managed to fix the problem by downloading from, the latest zip of PHP and copying over the PHP & EXT directories. It appears that PHP 5.2.2 (rather than xampp's 5.2.1) includes : "Fixed commandline handling for CLI and CGI."

Thanks for your help (and amazingly quick response!)

Reagards Jon