Skip to content

Commit

Permalink
MINOR Removed function_exists() checks which aren't necessary for PHP…
Browse files Browse the repository at this point in the history
… 5.2+
  • Loading branch information
Sean Harvey committed Apr 16, 2012
1 parent 3832069 commit bbf04ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 1 addition & 3 deletions dev/CliTestReporter.php
Expand Up @@ -41,9 +41,7 @@ public function writeResults() {

echo sprintf("\n\n%d tests run: %s, %s, and %s\n", $testCount, SS_Cli::text("$passCount passes"), SS_Cli::text("$failCount failures"), SS_Cli::text("$incompleteCount incomplete"));

if(function_exists('memory_get_peak_usage')) {
echo "Maximum memory usage: " . number_format(memory_get_peak_usage()/(1024*1024), 1) . "M\n\n";
}
echo "Maximum memory usage: " . number_format(memory_get_peak_usage()/(1024*1024), 1) . "M\n\n";

// Use sake dev/tests/all --showslow to show slow tests
if((isset($_GET['args']) && is_array($_GET['args']) && in_array('--showslow', $_GET['args'])) || isset($_GET['showslow'])) {
Expand Down
7 changes: 1 addition & 6 deletions dev/install/install.php5
Expand Up @@ -156,12 +156,7 @@ if($req->isIIS()) {

if($req->hasErrors()) {
$hasErrorOtherThanDatabase = true;
if ( function_exists('php_ini_loaded_file')) {
// show the location of the php.ini if any issues exist
$phpIniLocation = php_ini_loaded_file();
} else {
$phpIniLocation = null;
}
$phpIniLocation = php_ini_loaded_file();
}

if($databaseConfig) {
Expand Down

0 comments on commit bbf04ee

Please sign in to comment.