Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.6.0

Bug #16440 Problem with magic_quotes_runtime
Submitted: 2009-07-14 21:21 UTC
From: hasc Assigned: avb
Status: Closed Package: HTTP_Request2 (version 0.4.0)
PHP Version: 5.2.5 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 35 + 9 = ?

 
 [2009-07-14 21:21 UTC] hasc (Hannes Schulz)
Description: ------------ The value of "magic_quotes_runtime" is set to true although the value of $magicQuotes variable is 'off'. Request2.php, Line 804: ### if ($magicQuotes) { ini_set('magic_quotes_runtime', true); } ###

Comments

 [2009-07-16 02:43 UTC] avb (Alexey Borzov)
-Status: Open +Status: Bogus
Cannot reproduce with PHP 5.2.5 under Windows, I have magic_quotes_runtime = Off in my php.ini and running php -r "var_dump(ini_get('magic_quotes_runtime'));" outputs string(0) "" which, of course, evaluates to false. Dunno how you ended up with 'off' in that variable.
 [2009-07-29 00:43 UTC] hasc (Hannes Schulz)
Hi, thanks for you response. I got the result on a debian distribution and windows, both with php 5.2.9 I am using a php framework in the affected applications (symfony 1.2). Maybe the default settings are overwritten there. For me it is a problem that the magic_quotes_runtime is enabled although the value evaluates to 'off'. I am am not sure what the right approach is and if this is a special case, but i modified the mentioned code. Regards, hasc
 [2010-04-21 12:39 UTC] avb (Alexey Borzov)
-Status: Bogus +Status: Analyzed
Researched this problem a bit more: ini_get() returns a string with whatever was in the config file (e.g. 'Off') when PHP is configured via httpd.conf / .htaccess: php_value magic_quotes_runtime ... I think the easiest solution will be to use get_magic_quotes_runtime() / set_magic_quotes_runtime() rather than ini_get() / ini_set().
 [2010-04-21 15:43 UTC] avb (Alexey Borzov)
-Status: Analyzed +Status: Closed -Assigned To: +Assigned To: avb
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.