Bug #17625 Updated: Postet Vars are always set, even if not containing any data
| From: | mfischer@php.net | Date: | Thu, 06 Jun 2002 13:27:59 +0000 |
| Subject: | Bug #17625 Updated: Postet Vars are always set, even if not containing any data | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-9641@lists.php.net to get a copy of this message | ||
ID: 17625
Updated by: mfischer@php.net
Reported By: nilsheuer@gmx.de
-Status: Open
+Status: Bogus
Bug Type: Variables related
Operating System: Open BSD
PHP Version: 4.2.1
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Not going to change.
Previous Comments:
------------------------------------------------------------------------
[2002-06-06 08:43:41] nilsheuer@gmx.de
Just updated to php 4.2.1 a week ago (former version php 4.0.4). For
backward compatibility, turned register_globals on.
Now, after sending a form (method=post) with empty fields, their
corresponding vars are created. That doesnot make any sense to me,
since they dont contain any date. IMO php 4.0.4 was right, not to
create them.
The Problem is this:
after posting, users normally write something like
if(isset($my_posted_var))
{
//true, only if $my_posted_vars has a value
...
}
Now, users must do the following
if(!empty($my_posted_var)) and so on.
Why initialising empty vars? This looks like overhead to me.
And, i dont want to rewrite my whole scripts, if it is a bug and not a
feature.
Best regards
Nila
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17625&edit=1