Page 1 of 1

PHP magic_quotes* not set by ASL

Posted: Mon May 26, 2014 6:24 am
by prupert
There are variables in the ASL configuration (/etc/asl/config) that imply that they control the PHP directives 'magic_quotes_gpc' and 'magic_quotes_runtime'. However, it appears that they are not working.

/etc/asl/config:

Code: Select all

PHP_MAGIC_QUOTES_GPC="on"
PHP_MAGIC_QUOTES_RUNTIME="on"
Let ASL write the configuration:

Code: Select all

asl -s -f
/etc/php.ini:

Code: Select all

magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
I would expect ASL to set at least the 'magic_quotes_gpc' and 'magic_quotes_runtime' directives to 'On'.

Re: PHP magic_quotes* not set by ASL

Posted: Mon May 26, 2014 10:27 am
by hostingg

Re: PHP magic_quotes* not set by ASL

Posted: Mon May 26, 2014 10:57 am
by prupert
hostingg wrote:those functions were deprecated in php 5.3 and removed in 5.4
Yes, I know, I would surely advice against enabling magic_quotes in PHP. ;-)

However, I am reporting this as ASL is not writing the PHP configuration correctly. Should anyone want to enable magic_quotes on an ASL server, it does not appear to be working. If it is not supported by ASL anymore, I suggest that ASL removes these variables from the default /etc/asl/config. (It's also quite odd that the default /etc/asl/config has them enabled!)