Re: BUG - Someone else please verify B4 I file

From: Date: Thu, 05 Apr 2001 23:45:02 +0000
Subject: Re: BUG - Someone else please verify B4 I file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-47344@lists.php.net to get a copy of this message
Sure. It's an "environment variable", so it should always be set, even if it is empty. It's just a matter that all variables are declared, THEN their values are assigned. That's how C works, and that's what PHP is built in, so that's the behavior. It makes it more standard with other applications, without loosing any real functionality. So it's annoying at times, but with just a switch-aroo of the functions you are using, you can do the same stuff. -- Plutarck Should be working on something... ...but forgot what it was. "Krznaric Michael" <mkrznaric@rand.com> wrote in message news:81A3043681E6824EBE672F7421C30E7E2A19AE@SRVTORONTO.RAND.COM... > O.k. I understand that, now why would HTTP_POST_VARS be set if no data is > posted? Is this desired operation? > > Mike > > -----Original Message----- > From: Jeff Carnahan [mailto:jcarnahan@networq.com] > Sent: Wednesday, April 04, 2001 2:18 PM > To: php-general@lists.php.net > Subject: Re: [PHP] BUG - Someone else please verify B4 I file > > > In article <81A3043681E6824EBE672F7421C30E7E2A19A7 > @SRVTORONTO.RAND.COM>, mkrznaric@rand.com says... > }if (isset ($HTTP_POST_VARS)){ > } echo "Http Post Vars Set"; > > Remember, just because a variable is "set", it doesn't imply that the > variable has any data stored in it. In this case, while the > HTTP_POST_VARS array may be set, it does not contain any elements. > (It's size is zero.) > > Hence, it's not included in phpinfo(). > > -- > Jeff Carnahan - jcarnahan@networq.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#47344) next »