ID:               33485
 User updated by:  devon at 16oranges dot com
 Reported By:      devon at 16oranges dot com
 Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: WinXP
 PHP Version:      5.0.4
 New Comment:

Thanx. It'd be real nice if the manual would let people know about that
change. I checked through
http://us2.php.net/manual/en/function.isset.php before posting here for
any changes like that, but nothing was mentioned.


Previous Comments:
------------------------------------------------------------------------

[2005-06-27 08:41:39] [EMAIL PROTECTED]

In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.



------------------------------------------------------------------------

[2005-06-27 07:32:10] devon at 16oranges dot com

Description:
------------
Attempting to use isset() to find out when a user's submitted a form,
and if they have, then I give them particular output. This works on
Linux using old PHP 4.x, but I don't have access to that anymore. This
doesn't work on WinXP (with SP2, if that matters).

I suspect this is related to bug #29883 @
http://bugs.php.net/bug.php?id=29883 (which is supposed to be fixed),
because I tested for it and it comes out with the unexpected result. 

I'm 110% baffled.

- Devon

Reproduce code:
---------------
I'm using PHP 5.0.4 on WinXP (with SP2 if that matters at <form
method="get" action="this_file.php">
<input type="submit" value="ad" name="adicion" id="adicion" />
</form>

<?php
if(isset($adicion)) {
        echo "expected result after form is submitted.";
} else {
        echo "Only seen before form is submitted.";
}
?>

Expected result:
----------------
expected result after form is submitted.

Actual result:
--------------
Only seen before form is submitted.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=33485&edit=1

Reply via email to