|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-06-06 09:27 UTC] mfischer@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 13:00:01 2025 UTC |
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