2010-04-27, 06:29:27
Anyone using GS on PHP 5.3.x?
I have observed that single backslashes ("\") get stripped out from the content when I save a page. Double backslashes ("\\") are transformed into single backslashes. (If I save the page again, they disappear).
This happens with my test installs on XAMPP with PHP 5.3.2. In my live installs, however, no problem. My shared hosting provider has PHP 5.2.12
I think it may be because of magic quotes support, deprecated since PHP 5.3.
returns '1' on my PHP 5.2.x, but '0' on PHP 5.3.x
I have observed that single backslashes ("\") get stripped out from the content when I save a page. Double backslashes ("\\") are transformed into single backslashes. (If I save the page again, they disappear).
This happens with my test installs on XAMPP with PHP 5.3.2. In my live installs, however, no problem. My shared hosting provider has PHP 5.2.12
I think it may be because of magic quotes support, deprecated since PHP 5.3.
Code:
<?php echo get_magic_quotes_gpc(); ?>