#40890 [NEW]: long set_magic_quotes_gpc(int new_setting)
| From: | bothie at gmx dot de | Date: | Thu, 22 Mar 2007 10:00:17 +0000 |
| Subject: | #40890 [NEW]: long set_magic_quotes_gpc(int new_setting) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-110668@lists.php.net to get a copy of this message | ||
From: bothie at gmx dot de
Operating system: any
PHP version: 5.2.1
PHP Bug Type: Feature/Change Request
Bug description: long set_magic_quotes_gpc(int new_setting)
Description:
------------
Add functions like "long set_magic_quotes_gpc(int new_setting)"
Having security in mind, many web application (WA) programmers expect
magic_quotes_gpc to be set (or to be not set). It's possible to write WAs
which can tolerate both settings but the most easiest ist to have just
magic_quotes_gpc being set which is the default of course. But some sites
have magic_quotes_gpc not set. So mixing WAs expecting magic_quotes_gpc to
be set and WAs expecting magic_quotes_gpc not to be set is impossible. A
new introduced function set_magic_quotes_gpc would change that as any
program can enforce that setting in that way which it self expects it for
it's own runtime. (This feature request should be seen a little bit more
general, any other value which could be set in php.ini should get it's set_
counterpart as well except for some exceptions like disable_functions, for
which a set- counterpart may not be so wise - or at least a
set_disable_function should only be able to ADD additional functions to the
set of disabled functions, not to REMOVE any of them specified in
php.ini).
(I've just seen the ini_set-function and am very disappointed about it NOT
supporting a change to magic_quotes_gpc!)
--
Edit bug report at http://bugs.php.net/?id=40890&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40890&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40890&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40890&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40890&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40890&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40890&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40890&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40890&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40890&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40890&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40890&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40890&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40890&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40890&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40890&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40890&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40890&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40890&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40890&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40890&r=mysqlcfg