com web/qa: Publish PFTT Reports(3): pftt.php

From: Date: Thu, 20 Mar 2014 20:36:09 +0000
Subject: com web/qa: Publish PFTT Reports(3): pftt.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-67250@lists.php.net to get a copy of this message
Commit: d3be1c54ba5d25e8a88683807b1d98358e621595 Author: v-mafick@microsoft.com <v-mafick@microsoft.com> Thu, 20 Mar 2014 13:36:09 -0700 Parents: 7e81f15115d24e62301c563890b382599dd6bfdc Branches: master Link: http://git.php.net/?p=web/qa.git;a=commitdiff;h=d3be1c54ba5d25e8a88683807b1d98358e621595 Log: Publish PFTT Reports(3) Changed paths: M pftt.php Diff: diff --git a/pftt.php b/pftt.php index a0fbbd7..9d1f159 100755 --- a/pftt.php +++ b/pftt.php @@ -16,25 +16,29 @@ define('BASE_REPORT_DIR', dirname($_SERVER['SCRIPT_FILENAME'])."/pftt-reports/") <p>Choose a PHP Branch</p> <?php +var_dump(BASE_REPORT_DIR); +var_dump(dirname($_SERVER['SCRIPT_FILENAME'])); +$branches = scandir(BASE_REPORT_DIR); +var_dump($branches); +if ($branches!==FALSE) { + foreach ( $branches as $branch ) { + if ($branch=="." or $branch=="..") + continue; + if (is_dir(BASE_REPORT_DIR."/$branch")) { + $latest_revision = ''; + $latest_revision_mtime = 0; -foreach ( scandir(BASE_REPORT_DIR) as $branch ) { - if ($branch=="." or $branch=="..") - continue; - if (is_dir(BASE_REPORT_DIR."/$branch")) { - $latest_revision = ''; - $mtime = 0; - - foreach ( scandir(BASE_REPORT_DIR."/$branch") as $revision ) { - if ($revision=="." or $revision=="..") - continue; - if (is_dir(BASE_REPORT_DIR."/$branch/$revision")) { - $mtime = stat(BASE_REPORT_DIR."/$branch/$revision")[9]; - if ($mtime > $latest_revision_mtime) { - $latest_revision = $revision; - $latest_revision_mtime = $mtime; - } - } - } + foreach ( scandir(BASE_REPORT_DIR."/$branch") as $revision ) { + if ($revision=="." or $revision=="..") + continue; + if (is_dir(BASE_REPORT_DIR."/$branch/$revision")) { + $mtime = stat(BASE_REPORT_DIR."/$branch/$revision")[9]; + if ($mtime > $latest_revision_mtime) { + $latest_revision = $revision; + $latest_revision_mtime = $mtime; + } + } + } ?> <table> @@ -53,7 +57,8 @@ foreach ( scandir(BASE_REPORT_DIR) as $branch ) { <br/> <?php - } // end if + } // end if + } } common_footer();

« previous php.qa (#67250) next »