cvs: php-src / run-tests.php

From: Date: Fri, 09 Dec 2005 09:50:10 +0000
Subject: cvs: php-src / run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-35829@lists.php.net to get a copy of this message
helly Fri Dec 9 04:50:10 2005 EDT Modified files: /php-src run-tests.php Log: - Section FILE does not exist for redirection tests http://cvs.php.net/diff.php/php-src/run-tests.php?r1=1.254&r2=1.255&ty=u Index: php-src/run-tests.php diff -u php-src/run-tests.php:1.254 php-src/run-tests.php:1.255 --- php-src/run-tests.php:1.254 Thu Dec 8 19:30:05 2005 +++ php-src/run-tests.php Fri Dec 9 04:49:58 2005 @@ -23,7 +23,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: run-tests.php,v 1.254 2005/12/09 00:30:05 helly Exp $ */ +/* $Id: run-tests.php,v 1.255 2005/12/09 09:49:58 helly Exp $ */ /* Sanity check to ensure that pcre extension needed by this script is available. * In the event it is not, print a nice error message indicating that this script will @@ -339,7 +339,7 @@ $html_output = is_resource($html_file); break; case '--version': - echo "$Id: run-tests.php,v 1.254 2005/12/09 00:30:05 helly Exp $\n"; + echo "$Id: run-tests.php,v 1.255 2005/12/09 09:49:58 helly Exp $\n"; exit(1); default: echo "Illegal switch specified!\n"; @@ -987,7 +987,9 @@ if (!is_dir(dirname($copy_file))) { @mkdir(dirname($copy_file), 0777, true) or error("Cannot create output directory - " . dirname($copy_file)); } - save_text($copy_file, $section_text['FILE']); + if (isset($section_text['FILE'])) { + save_text($copy_file, $section_text['FILE']); + } $temp_filenames = array( 'file' => $copy_file, 'diff' => $diff_filename, @@ -1697,7 +1699,7 @@ if ($html_output) { - if (isset($temp_filenames['file'])) { + if (isset($temp_filenames['file']) && @file_exists($temp_filenames['file'])) { $url = str_replace($temp_target, $temp_urlbase, $temp_filenames['file']); $tested = "<a href='$url'>$tested</a>"; }

« previous php.cvs (#35829) next »