Ticket #3294: trac-3294-phpcs-fix-silenced-errors-1.patch
File trac-3294-phpcs-fix-silenced-errors-1.patch, 977 bytes (added by , 5 years ago) |
---|
-
src/includes/admin/classes/class-bbp-converter.php
258 258 ) ); 259 259 260 260 // Get disabled PHP functions (to avoid using them) 261 $disabled = explode( ',', @ini_get( 'disable_functions' ) );261 $disabled = explode( ',', ini_get( 'disable_functions' ) ); 262 262 263 263 // Maybe avoid terminating when the client goes away (if function is not disabled) 264 264 if ( ! in_array( 'ignore_user_abort', $disabled, true ) ) { 265 @ignore_user_abort( true );265 ignore_user_abort( true ); 266 266 } 267 267 268 268 // Maybe set memory & time limits, and flush style (if function is not disabled) 269 269 if ( ! in_array( 'ini_set', $disabled, true ) ) { 270 270 foreach ( $r as $key => $value ) { 271 @ini_set( $key, $value );271 ini_set( $key, $value ); 272 272 } 273 273 } 274 274 }