Several production sytems I manage have a bunch of php scripts, that
were called with php -q using the CGI interface. 

The problem is that the -q switch is still in the CLI for backward
compatibility, but it breaks scripts because it does not change
directories.

I would strongly suggest that the -q switch would imply changing the
working directory to that of the script, unless overriden by -C.

That way, both "php -q" and "php -C -q" (as used in PEAR) would give the
same results with both CGI and CLI.

What do you think?

Jean-Michel Dault
MandrakeSoft


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to