Commit:    98a29a1f1e9b715d77ff8d1168d3daa5e9ad52d7
Author:    v-maf...@microsoft.com <v-maf...@microsoft.com>         Thu, 20 Mar 
2014 14:15:21 -0700
Parents:   d3be1c54ba5d25e8a88683807b1d98358e621595
Branches:  master

Link:       
http://git.php.net/?p=web/qa.git;a=commitdiff;h=98a29a1f1e9b715d77ff8d1168d3daa5e9ad52d7

Log:
Publish PFTT Reports (4)

Changed paths:
  M  build.php
  M  pftt.php
  M  pftt_report.php


Diff:
diff --git a/build.php b/build.php
index 0456a34..dd6aa35 100755
--- a/build.php
+++ b/build.php
@@ -43,6 +43,7 @@ common_header();
        </tr>
        <?php
        var_dump(BASE_REPORT_DIR);
+       var_dump(BASE_REPORT_DIR."/$branch/$revision");
        var_dump(scandir(BASE_REPORT_DIR."/$branch/$revision"));
 foreach ( scandir(BASE_REPORT_DIR."/$branch/$revision") as $report ) {
        if (substr($report, 0, 4)=="PHPT" && 
is_file(BASE_REPORT_DIR."/$branch/$revision/$report")) {
diff --git a/pftt.php b/pftt.php
index 9d1f159..fda0748 100755
--- a/pftt.php
+++ b/pftt.php
@@ -18,7 +18,7 @@ define('BASE_REPORT_DIR', 
dirname($_SERVER['SCRIPT_FILENAME'])."/pftt-reports/")
 <?php
 var_dump(BASE_REPORT_DIR);
 var_dump(dirname($_SERVER['SCRIPT_FILENAME']));
-$branches = scandir(BASE_REPORT_DIR);
+/*$branches = scandir(BASE_REPORT_DIR);
 var_dump($branches);
 if ($branches!==FALSE) {
     foreach ( $branches as $branch ) {
@@ -47,19 +47,13 @@ if ($branches!==FALSE) {
                <td>Latest:</td>
                <td><a href="build.php?branch=<?php echo $branch; 
?>&revision=<?php echo $latest_revision; ?>"><?php echo $latest_revision; 
?></a></td>
        </tr>
-<?php /*       <tr>
-               <td>New Failures:</td>
-               <td></td>
-               <td>New Crashes:</td>
-               <td></td>
-       </tr>*/ ?>
 </table>
 <br/>  
 <?php
 
            } // end if
     }
-}
+}*/
 
 common_footer();
 ?>
\ No newline at end of file
diff --git a/pftt_report.php b/pftt_report.php
index 6f8e48e..ddcf964 100755
--- a/pftt_report.php
+++ b/pftt_report.php
@@ -98,11 +98,17 @@ $report_file = dirname($_SERVER['SCRIPT_FILENAME']) . 
"/pftt-reports/$branch/$re
 $report_dir = dirname($report_file);
 
 // ensure dir exists
-@mkdir($report_dir, 0644, TRUE);
+mkdir($report_dir, 0644, TRUE);
 
 // report_file is stored locally in a temporary file, move that file to the 
permanent location
 move_uploaded_file($_FILES['report_file']['tmp_name'], $report_file);
 
+echo "Parent dir content:";
+var_dump(scandir(dirname($report_dir)));
+
+echo "Parent-Parent dir content:";
+var_dump(scandir(dirname(dirname($report_dir))));
+
 // done, successfully
 echo "Uploaded to $report_file";


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

Reply via email to