Arpad Ray wrote:
So, is this behaviour deliberate, and if so, what's the rationale?
The problem seems to be in (5.2.x CVS) php_variables.c, lines 161-166:
if (PG(magic_quotes_gpc) && (index != var)) {
/* no need to addslashes() the index if it's the
main var
PHP 6 Bug Database summary - http://bugs.php.net
Num Status Summary (43 total including feature requests)
===[*General Issues]==
26771 Suspended register_tick_funtions crash under threaded webservers
27372 Verified parse error loadin
PHP 5 Bug Database summary - http://bugs.php.net
Num Status Summary (696 total including feature requests)
===[*General Issues]==
40716 Assigned Installation problem Win/Apache224
===[*Mail
PHP 4 Bug Database summary - http://bugs.php.net
Num Status Summary (636 total including feature requests)
===[*Directory/Filesystem functions]
40661 Open cwd is reset when shutdown handler runs
===