Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BBP_Converter::maybe_set_memory()
Attempt to increase memory and set other system settings
Description Description
Source Source
File: includes/admin/classes/class-bbp-converter.php
private function maybe_set_memory() { // Filter args $r = apply_filters( 'bbp_converter_php_ini_overrides', array( 'implicit_flush' => '1', 'memory_limit' => '256M', 'max_execution_time' => HOUR_IN_SECONDS * 6 ) ); // Get disabled PHP functions (to avoid using them) $disabled = explode( ',', @ini_get( 'disable_functions' ) ); // Maybe avoid terminating when the client goes away (if function is not disabled) if ( ! in_array( 'ignore_user_abort', $disabled, true ) ) { @ignore_user_abort( true ); } // Maybe set memory & time limits, and flush style (if function is not disabled) if ( ! in_array( 'ini_set', $disabled, true ) ) { foreach ( $r as $key => $value ) { @ini_set( $key, $value ); } } }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |