Bug with "+" sign when using CLI?

From: Date: Fri, 06 Dec 2002 20:28:49 +0000
Subject: Bug with "+" sign when using CLI?
Groups: php.general 
Request: Send a blank email to php-general+get-127315@lists.php.net to get a copy of this message
I'm using the CLI script shown below to parse and show all argv variables passed to it. ###################################################### -rwxr-xr-x 1 nobody nobody plusbug.php ###################################################### #!/usr/bin/php -q <?PHP print_r($_SERVER['argv']); ?> ############### END ################################## Command being entered: ./plusbug.php 'something+something' Output: Array ( [0] => ./plusbug.php [1] => something [2] => something ) I found nothing about a + splitting argument variables anywhere in the CLI documentation though I know this is a CGI characteristic. I've tried escaping the + character to no avail. I need to pass a string with a + character in it, anyone know anything I can do other than repopulating the character back into the string within the php script which would make what I'm trying to accomplish very difficult. In the php.ini I have: register_globals = On register_argc_argv = On Note: If I have either of these turned off, I am not even able to pick-up the arguments passed to the script whether I use $argv or $_SERVER['argv']. PHP Version: 4.2.3 Regards, Bronson_AT_udatasystems.com

« previous php.general (#127315) next »