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:[EMAIL PROTECTED]
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php