Jon Erickson Posted April 2, 2019 Posted April 2, 2019 IPB is telling me I have the infamous dangerous functions enabled although when looking at my PHP configuration, it's clear I have them disabled. However, when looking at the PHP settings through IPB's support tool, it says they are NOT disabled. How come the difference? http://community.deschutesdesigngroup.com/phpinfo.php
bfarber Posted April 2, 2019 Posted April 2, 2019 9 hours ago, Jon Erickson said: IPB is telling me I have the infamous dangerous functions enabled although when looking at my PHP configuration, it's clear I have them disabled. However, when looking at the PHP settings through IPB's support tool, it says they are NOT disabled. How come the difference? http://community.deschutesdesigngroup.com/phpinfo.php foreach ( static::$dangerousPhpFunctions as $function ) { if ( \function_exists( $function ) ) { $functions[] = $function; } } We simply perform a function_exists() call against each one.
Jon Erickson Posted April 3, 2019 Author Posted April 3, 2019 @SJ77 of course! Apparently there’s a discepency in PHP config in my root directory and the directory the checks are being performed in.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.