Re[2]: [PHP-DEV] PHP 5.1
| From: | val khokhlov | Date: | Wed, 02 Feb 2005 21:01:50 +0000 |
| Subject: | Re[2]: [PHP-DEV] PHP 5.1 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-14533@lists.php.net to get a copy of this message | ||
Hello Ilia,
Wednesday, February 2, 2005, 7:04:24 PM, you wrote:
IA> The end result is that we are punishing people who have already written
IA> good code and continue to encourage people to write bad code by saying
IA> "we'll take care of data filtering", which is sorta like safe_mode.
+1 to this
i think it's very bad idea to break backwards compatibility - it will
make thousands of working systems non-operational (for example, if a hosting
admin 'upgrades' php to the version which has input filtering)
IA> I am by no means opposed to offering functions that can be used to
IA> perform input data filtering to save the time of having to write your
IA> own. But, I'd prefer to be able to easily access raw data. Perhaps
IA> something like filter_restore_raw_data() function that would put the raw
IA> data back into GET/POST/COOKIE super globals.
i don't think it's a good idea either - all existing scripts would
require adding filter_restore_raw_data() call. i think, it's better to do a
filter call in quite opposite way:
filter_data() function that would do filtering for superglobals; those
who need it can call it manually
--
Best regards,
val mailto:val@vk.kiev.ua