RE: [PHP] BUG - Someone else please verify B4 I file
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:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 2:18 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] BUG - Someone else please verify B4 I file In article 81A3043681E6824EBE672F7421C30E7E2A19A7 @SRVTORONTO.RAND.COM, [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] BUG - Someone else please verify B4 I file
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" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 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:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 2:18 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] BUG - Someone else please verify B4 I file In article 81A3043681E6824EBE672F7421C30E7E2A19A7 @SRVTORONTO.RAND.COM, [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] BUG - Someone else please verify B4 I file
I've noticed that and had to rewrite several scripts when hosts upgraded from PHP3 to PHP4. $HTTP_POST_VARS is considered set even when it is empty. Data Driven Design P.O. Box 1084 Holly Hill, FL 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net - Original Message - From: Krznaric Michael [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 04, 2001 11:02 AM Subject: [PHP] BUG - Someone else please verify B4 I file There seems to be a bug in php 4.0.4pl1, would someone please verify this script below. If you paste this script into a file called bug.php and you just call it you will see "Http post Vars Set". However you will not find that variable it in the output of PHPINFO. I tried this under php4.0.2 and the behavior is as expected "Http Post Vars Not Set". Can anyone confirm or disprove this? Mike bug.php ? if (isset ($HTTP_POST_VARS)){ echo "Http Post Vars Set"; } else { echo "Http Post Vars Not Set"; } phpinfo(); ? My environment: PHP-4.0.4pl1 DSO Solaris 8 Apache 1.3.14 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] BUG - Someone else please verify B4 I file
In article 81A3043681E6824EBE672F7421C30E7E2A19A7 @SRVTORONTO.RAND.COM, [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] BUG - Someone else please verify B4 I file
on 4/4/01 5:14 PM, Data Driven Design at [EMAIL PROTECTED] wrote: I've noticed that and had to rewrite several scripts when hosts upgraded from PHP3 to PHP4. $HTTP_POST_VARS is considered set even when it is empty. i have also noticed this. we run 4.0.3pl1 here. have a great day andy -- *** Andrew Rush :: Lead Systems Developer :: MaineToday.com *** "A friend of the devil is a friend of mine" - R. Hunter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] BUG - Someone else please verify B4 I file
"Data Driven Design" [EMAIL PROTECTED] wrote: I've noticed that and had to rewrite several scripts when hosts upgraded from PHP3 to PHP4. $HTTP_POST_VARS is considered set even when it is empty. For those that can't guess the solution to this problem I suspect this will do the trick: ! empty() instead of: isset() Or Jeff (Data Driven Design), did you use a different technique? -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]