ID: 32867 Updated by: [EMAIL PROTECTED] Reported By: Arne dot Heizmann at csr dot com Status: Bogus Bug Type: PHP options/info functions Operating System: Windows 2000 PHP Version: 4.3.11 New Comment:
magic_quotes_gpc is applied while parsing the request before your PHP script gets control so while you can change this setting in your script, it won't have any effect. Previous Comments: ------------------------------------------------------------------------ [2005-04-28 12:51:24] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. By the time that ini_set() call is run, the request data is already processed. ------------------------------------------------------------------------ [2005-04-28 12:46:05] Arne dot Heizmann at csr dot com Description: ------------ I have tried ini_set ('magic_quotes_gpc', 0); and ini_set ('magic_quotes_gpc', 'Off'); and various others, but I still get those stupid backslashes. Reproduce code: --------------- ini_set ('magic_quotes_gpc', 0); echo '<pre>'. get_array_val ('x', $_POST) . '</pre>'; echo "<form action='/test2.php' method='post'> <input type='text' name='x' value=''' /> <input type='submit' /> </form>"; Expected result: ---------------- Upon submitting the form, you should see an apostrophe. Actual result: -------------- You see a backslash followed by an apostrophe. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32867&edit=1
