PHP magic_quotes* not set by ASL

Customer support forums for Atomic Protector (formerly Atomic Secured Linux). There is no such thing as a bad question here as long as it pertains to using Atomic Protector. Newbies feel free to get help getting started or asking questions that may be obvious. Regular users are asked to be gentle. :-)
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

PHP magic_quotes* not set by ASL

Unread post 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'.
Lemonbit Internet Dedicated Server Management
User avatar
hostingg
Forum User
Forum User
Posts: 63
Joined: Mon Mar 18, 2013 6:26 pm
Location: Earth

Re: PHP magic_quotes* not set by ASL

Unread post by hostingg »

If everything was easy, then the world wouldn't need engineers.
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Re: PHP magic_quotes* not set by ASL

Unread post 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!)
Lemonbit Internet Dedicated Server Management
Post Reply