CLI behavior with -q switch

From: Date: Mon, 06 Jan 2003 04:49:15 +0000
Subject: CLI behavior with -q switch
Groups: php.dev 
Request: Send a blank email to php-dev+get-93166@lists.php.net to get a copy of this message
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

« previous php.dev (#93166) next »