Jon Erickson Posted April 2, 2019 Share 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 Link to comment Share on other sites More sharing options...
SJ77 Posted April 2, 2019 Share Posted April 2, 2019 Did you restart php after disabling? Link to comment Share on other sites More sharing options...
bfarber Posted April 2, 2019 Share 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. Link to comment Share on other sites More sharing options...
Jon Erickson Posted April 3, 2019 Author Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.