Skip to content

Commit

Permalink
Remove un-needed php compatibility functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis authored and davidhicks committed Aug 20, 2011
1 parent eb7da3a commit 66814ff
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions application/core/php_api.php
Expand Up @@ -87,18 +87,6 @@ function php_version_at_least( $p_version_string ) {
return true;
}

# Check for function because it is deprecated in PHP 5.3 and removed in PHP 6
if ( function_exists( 'set_magic_quotes_runtime' ) ) {
@set_magic_quotes_runtime( false );
}

# Added in PHP 5.2.0
if ( !function_exists( 'memory_get_peak_usage') ) {
function memory_get_peak_usage() {
return memory_get_usage();
}
}

# If mb_* not defined, define it to map to standard methods.
if ( !function_exists( 'mb_substr' ) ) {
function mb_substr( $p_text, $p_index, $p_size ) {
Expand Down

0 comments on commit 66814ff

Please sign in to comment.