Commit:    d3be1c54ba5d25e8a88683807b1d98358e621595
Author:    v-maf...@microsoft.com <v-maf...@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();


--
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to