Re: [PHP-DEV] GET/POST whitespace stripping behavior

2005-08-08 Thread Christopher Kunz
> He's asking 'why' not 'how'... > Right. My suspicion is that this is from the old days, when men were men and GET variables were not in $_GET - but the inconsistency kinda bugs me. There has to be someone who remembers why they wrote it that way...? Anyone? Rasmus? :) --ck -- PHP Internals

Re: [PHP-DEV] GET/POST whitespace stripping behavior

2005-08-08 Thread Derick Rethans
On Mon, 8 Aug 2005, Pawel Bernat wrote: > On Mon, Aug 08, 2005 at 03:37:53PM +0200, Christopher Kunz wrote: > > Hi, > > > > I have a general question in regard to the PHP variable normalizing. > > Obviously, > > leading whitespace in a variable is stripped, but why is trailing > > whitespace

Re: [PHP-DEV] GET/POST whitespace stripping behavior

2005-08-08 Thread Pawel Bernat
On Mon, Aug 08, 2005 at 03:37:53PM +0200, Christopher Kunz wrote: > Hi, > > I have a general question in regard to the PHP variable normalizing. > Obviously, > leading whitespace in a variable is stripped, but why is trailing whitespace > converted to underscores? See http://php.net/manual/en/f

[PHP-DEV] GET/POST whitespace stripping behavior

2005-08-08 Thread Christopher Kunz
Hi, I have a general question in regard to the PHP variable normalizing. Obviously, leading whitespace in a variable is stripped, but why is trailing whitespace converted to underscores? Example: /?foo=bar&+fooo=blah&foo+=ljalskdf results in: array(3) { ["foo"]=> string(3) "bar"