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]

Reply via email to