cvs: php-gcov-web(SOC06) /cron check_parameters.php compile_results.php cron.php tests.php valgrind.php /www config.php viewer.php
| From: | Nuno Lopes | Date: | Mon, 11 Sep 2006 15:34:18 +0000 |
| Subject: | cvs: php-gcov-web(SOC06) /cron check_parameters.php compile_results.php cron.php tests.php valgrind.php /www config.php viewer.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-32491@lists.php.net to get a copy of this message | ||
nlopess Mon Sep 11 15:34:18 2006 UTC
Added files: (Branch: SOC06)
/php-gcov-web/cron check_parameters.php
Modified files:
/php-gcov-web/cron compile_results.php cron.php tests.php
valgrind.php
/php-gcov-web/www config.php viewer.php
Log:
little speed tweaks
port the zend_parse_parameters() checking script
http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/compile_results.php?r1=1.1.2.7&r2=1.1.2.8&diff_format=u
Index: php-gcov-web/cron/compile_results.php
diff -u php-gcov-web/cron/compile_results.php:1.1.2.7 php-gcov-web/cron/compile_results.php:1.1.2.8
--- php-gcov-web/cron/compile_results.php:1.1.2.7 Sun Sep 10 15:28:52 2006
+++ php-gcov-web/cron/compile_results.php Mon Sep 11 15:34:18 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: compile_results.php,v 1.1.2.7 2006/09/10 15:28:52 nlopess Exp $ */
+/* $Id: compile_results.php,v 1.1.2.8 2006/09/11 15:34:18 nlopess Exp $ */
// Compile Results generation script
@@ -31,8 +31,6 @@
$totalnumerrors = 0;
$totalnumwarnings = 0;
-require_once 'template.php';
-
$data = file_get_contents("$tmpdir/php_build.log");
// Check if build file was readable, and if not, notify the user
@@ -113,13 +111,13 @@
HTML;
if($type == 'error')
{
- @$stats[$file][0] += 1; // number of file errros
- $totalnumerrors++;
+ @++$stats[$file][0]; // number of file errros
+ ++$totalnumerrors;
}
elseif($type == 'warning')
{
- @$stats[$file][1] += 1; // number of file warnings
- $totalnumwarnings++;
+ @++$stats[$file][1]; // number of file warnings
+ ++$totalnumwarnings;
}
else
{
@@ -187,7 +185,7 @@
// Add content to the core compile results file
$index_write .= <<< HTML
<tr>
-<td><a
href="viewer.php?version=$version&func=compile_results&file=$hash">$short_file</a></td>
+<td><a
href="viewer.php?version=$phpver&func=compile_results&file=$hash">$short_file</a></td>
<td>$data[0]</td>
<td>$data[1]</td>
</tr>
http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/cron.php?r1=1.1.2.10&r2=1.1.2.11&diff_format=u
Index: php-gcov-web/cron/cron.php
diff -u php-gcov-web/cron/cron.php:1.1.2.10 php-gcov-web/cron/cron.php:1.1.2.11
--- php-gcov-web/cron/cron.php:1.1.2.10 Sun Sep 10 15:59:30 2006
+++ php-gcov-web/cron/cron.php Mon Sep 11 15:34:18 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: cron.php,v 1.1.2.10 2006/09/10 15:59:30 nlopess Exp $ */
+/* $Id: cron.php,v 1.1.2.11 2006/09/11 15:34:18 nlopess Exp $ */
if ($argc != 7)
@@ -58,23 +58,15 @@
$xmlarray = array();
-// Set up variables that apply to all scripts
-$version = basename($phpdir, __FILE__); // todo: make this dynamic or based on the tags instead
-
// avoid filling the disk
system("rm -f $outdir/*.inc");
-// Load main configuration including database connection
require $workdir.'/config.php';
-
-// Load templates used by the various components of the cron scripts
require $workdir.'/template.php';
-
-// Gathers the key system information
require $workdir.'/system.php';
-
-// Processes the log file to find compile related errors and warnings
require $workdir.'/compile_results.php';
+require $workdir.'/check_parameters.php';
+
// This section is required for either system configuration
if($makestatus == 'pass')
http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/tests.php?r1=1.1.2.9&r2=1.1.2.10&diff_format=u
Index: php-gcov-web/cron/tests.php
diff -u php-gcov-web/cron/tests.php:1.1.2.9 php-gcov-web/cron/tests.php:1.1.2.10
--- php-gcov-web/cron/tests.php:1.1.2.9 Sun Sep 10 15:28:52 2006
+++ php-gcov-web/cron/tests.php Mon Sep 11 15:34:18 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tests.php,v 1.1.2.9 2006/09/10 15:28:52 nlopess Exp $ */
+/* $Id: tests.php,v 1.1.2.10 2006/09/11 15:34:18 nlopess Exp $ */
// Tests generation file
@@ -139,7 +139,7 @@
$index_write .= <<< HTML
<tr>
<td>
-<a
href="viewer.php?version=$version&func=tests&file=$hash">$file</a></td>
+<a
href="viewer.php?version=$phpver&func=tests&file=$hash">$file</a></td>
<td>{$testtype}</td>
<td>{$title_html}</td>
</tr>
http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/valgrind.php?r1=1.1.2.8&r2=1.1.2.9&diff_format=u
Index: php-gcov-web/cron/valgrind.php
diff -u php-gcov-web/cron/valgrind.php:1.1.2.8 php-gcov-web/cron/valgrind.php:1.1.2.9
--- php-gcov-web/cron/valgrind.php:1.1.2.8 Sun Sep 10 15:28:52 2006
+++ php-gcov-web/cron/valgrind.php Mon Sep 11 15:34:18 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: valgrind.php,v 1.1.2.8 2006/09/10 15:28:52 nlopess Exp $ */
+/* $Id: valgrind.php,v 1.1.2.9 2006/09/11 15:34:18 nlopess Exp $ */
// File to process memory leaks detected by valgrind
@@ -28,8 +28,6 @@
exit;
}
-require_once $workdir.'/template.php';
-
// data: contains the contents of $tmpdir/php_test.log
// unicode: true if unicode is included in the log files
@@ -65,16 +63,13 @@
$base = "$phpdir/".substr($test['file'],0,-4);
- $dir = dirname($test['file']);
-
+ $dir = dirname($test['file']);
$file = basename($test['file']);
-
- $hash = 'v' . md5($report_file);
+ $hash = 'v' . md5($report_file);
$report_file = ''; // Used internally to determine unicode or native filename
$testtype = '';
-
$title = $test['title'];
// If test mode is not unicode it is native
@@ -166,14 +161,13 @@
else
{
// If not master server, add the leak to the output array
-
$newleak = array();
- $newleak['testtype'] = $testtype;
- $newleak['title'] = $test['title'];
- $newleak['file'] = $test['file'];
- $newleak['script'] = $script_text;
- $newleak['report'] = $report;
- $xmlarray['valgrind'][] = $newleak;
+ $newleak['testtype'] = $testtype;
+ $newleak['title'] = $test['title'];
+ $newleak['file'] = $test['file'];
+ $newleak['script'] = $script_text;
+ $newleak['report'] = $report;
+ $xmlarray['valgrind'][] = $newleak;
} // End check for master server
http://cvs.php.net/viewvc.cgi/php-gcov-web/www/config.php?r1=1.1.2.6&r2=1.1.2.7&diff_format=u
Index: php-gcov-web/www/config.php
diff -u php-gcov-web/www/config.php:1.1.2.6 php-gcov-web/www/config.php:1.1.2.7
--- php-gcov-web/www/config.php:1.1.2.6 Sun Sep 10 15:28:52 2006
+++ php-gcov-web/www/config.php Mon Sep 11 15:34:18 2006
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: config.php,v 1.1.2.6 2006/09/10 15:28:52 nlopess Exp $ */
+/* $Id: config.php,v 1.1.2.7 2006/09/11 15:34:18 nlopess Exp $ */
// File: Core Site Configuration File
// Desc: contains core site settings, this file is essential and always included by the API.
@@ -41,6 +41,7 @@
'coverage' => 'lcov',
'compile-results' => 'compile_results',
'graphs' => 'graph',
+ 'parameter-parsing' => 'params',
'system' => 'system',
'test-failures' => 'tests',
'valgrind' => 'valgrind'
http://cvs.php.net/viewvc.cgi/php-gcov-web/www/viewer.php?r1=1.1.2.15&r2=1.1.2.16&diff_format=u
Index: php-gcov-web/www/viewer.php
diff -u php-gcov-web/www/viewer.php:1.1.2.15 php-gcov-web/www/viewer.php:1.1.2.16
--- php-gcov-web/www/viewer.php:1.1.2.15 Sun Sep 10 16:57:12 2006
+++ php-gcov-web/www/viewer.php Mon Sep 11 15:34:18 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: viewer.php,v 1.1.2.15 2006/09/10 16:57:12 nlopess Exp $ */
+/* $Id: viewer.php,v 1.1.2.16 2006/09/11 15:34:18 nlopess Exp $ */
// Name: GCOV Viewer page
// Desc: page for view PHP version information such as code coverage
@@ -66,6 +66,12 @@
'pagetitle' => 'PHP: Test Log for '. $version,
'pagehead' => 'Test Log'
),
+ 'params' =>
+ array(
+ 'option' => 'phpinc',
+ 'pagetitle' => 'PHP: Parameter Parsing Report for '.$version,
+ 'pagehead' => 'Parameter Parsing Report'
+ ),
'valgrind' =>
array(
'option' => 'phpinc',
http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/check_parameters.php?view=markup&rev=1.1
Index: php-gcov-web/cron/check_parameters.php
+++ php-gcov-web/cron/check_parameters.php