Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2174 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94455 invoked from network); 4 Jun 2003 20:09:25 -0000 Received: from unknown (HELO ns3.ispi.net) (24.123.121.76) by pb1.pair.com with SMTP; 4 Jun 2003 20:09:25 -0000 Received: from [10.131.193.2] (wynton.ispi.net [24.123.121.74]) by ns3.ispi.net (Postfix) with ESMTP id C55ADF0AD; Wed, 4 Jun 2003 15:09:24 -0500 (CDT) To: internals@lists.php.net Cc: helly@php.net, edink@php.net Content-Type: text/plain Organization: Message-ID: <1054757360.15569.13.camel@lena.ispi.prv> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.0 Date: 04 Jun 2003 15:09:20 -0500 Content-Transfer-Encoding: 7bit Subject: argv and plus signs From: monte@ispi.net (Monte Ohrt) Hi, I asked Andrei about this and he suggested that I pose this question to you folks... I'm trying to use php from the command line and the $argv array seems to be squashing plus signs (+) in the content. Example: $> test.php -R '\w+\.gif' file.txt A printout of $argv reveals: Array( [0] => test.php [1] => -R [2] => \w [3] => \.gif ]4] => file.txt ) I tried different escapement and quotes thinking that it was the shell causing the problems, but nothing seems to help. Maybe the args are expected to be URL encoded? I tried some values like %23, but those went unchanged, only space is affected. Is this a bug, or am I missing something? How do I pass a plus sign? TIA Monte