[git] web/qa.git branch master updated. 5887c1f
| From: | johannes@php.net | Date: | Sun, 05 Feb 2012 02:55:57 +0000 |
| Subject: | [git] web/qa.git branch master updated. 5887c1f | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66073@lists.php.net to get a copy of this message | ||
The branch, master on web/qa.git has been updated
via 5887c1f6987628c077b5f94c1e59bd4ef8cac124 (commit)
from 443f280ac5f74def3314657622f7c5da27436b8d (commit)
http://git.php.net/?p=web/qa.git;a=log;h=5887c1f6987628c077b5f94c1e59bd4ef8cac124;hp=443f280ac5f74def3314657622f7c5da27436b8d
Summary of changes:
reports/viewreports.php | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
-- Log ----------------------------------------
commit 5887c1f6987628c077b5f94c1e59bd4ef8cac124
Author: Johannes Schlüter <johannes@php.net>
Date: Sun Feb 5 03:49:06 2012 +0100
Add more bug info for bug tests
diff --git a/reports/viewreports.php b/reports/viewreports.php
index c8ee1b1..7bcaa19 100644
--- a/reports/viewreports.php
+++ b/reports/viewreports.php
@@ -76,8 +76,10 @@ if (substr($version, 0, 3) == '5.2') {
// BUG url
if (preg_match('@bug([0-9]{1,}).phpt$@', $testName, $preg)) {
+ $bugId = (int)$preg[1];
$bugUrl = 'http://bugs.php.net/'.$preg[1];
} else {
+ $bugId = null;
$bugUrl = '';
}
@@ -104,6 +106,48 @@ if ($bugUrl != '') {
}
?></h1>
+<?php
+if ($bugId) {
+ if (!($bugxml = @simplexml_load_file("https://bugs.php.net/rss/bug.php?format=xml&id=".$bugId)))
{
+ echo '<div style="width:100%; border:1px solid red;">Failed loading
bug info. SimpleXML: '.(extension_loaded("simplexml") ? 'Yes' :
'No').', OpenSSL: '.(extension_loaded("openssl") ? 'Yes' :
'No').'</div>';
+ } else {
+?>
+<table style="width:100%; border-width=0">
+ <tr id="title">
+ <th class="details" id="number"><a href="http://bugs.php.net/<?php echo $bugId;
?>">Bug</a> #<?php echo $bugId; ?></th>
+ <td id="summary" colspan="5"><?php echo
htmlentities($bugxml->sdesc);?></td>
+ </tr>
+ <tr id="submission">
+ <th class="details">Submitted:</th>
+ <td style="white-space: nowrap;"><?php echo
htmlentities($bugxml->ts1);?></td>
+ <th class="details">Modified:</th>
+ <td style="white-space: nowrap;"><?php echo
htmlentities($bugxml->ts2);?></td>
+ <td rowspan="6"></td>
+ </tr>
+ <tr id="submitter">
+ <th class="details">From:</th>
+ <td><?php echo htmlentities(strtok($bugxml->email, '@'));?></td>
+ <th class="details">Assigned:</th>
+ <td><a href="http://bugs.php.net/search.php?cmd=display&assign=<?php
echo htmlentities($bugxml->assign, ENT_QUOTES);?>"><?php echo
htmlentities($bugxml->assign); ?></a></td>
+ </tr>
+ <tr id="categorization">
+ <th class="details">Status:</th>
+ <td><?php echo htmlentities($bugxml->status);?></td>
+ <th class="details">Package:</th>
+ <td><a href="http://bugs.php.net/search.php?cmd=display&package_name[]=<?php
echo htmlentities($bugxml->package_name, ENT_QUOTES);?>"><?php echo
htmlentities($bugxml->package_name);?></a></td>
+ </tr>
+ <tr id="situation">
+ <th class="details">PHP Version:</th>
+ <td><?php echo htmlentities($bugxml->php_version);?></td>
+ <th class="details">OS:</th>
+ <td><?php echo htmlentities($bugxml->php_os);?></td>
+ </tr>
+</table>
+<?php
+ }
+}
+?>
+
<strong><em>
<?php
$count = count($allDiffArray);
Thank you for your contribution.