helly           Fri Dec  9 04:50:30 2005 EDT

  Modified files:              (Branch: PHP_5_1)
    /php-src    run-tests.php 
  Log:
  - MFH Section FILE does not exist for redirection tests
  
http://cvs.php.net/diff.php/php-src/run-tests.php?r1=1.226.2.11&r2=1.226.2.12&ty=u
Index: php-src/run-tests.php
diff -u php-src/run-tests.php:1.226.2.11 php-src/run-tests.php:1.226.2.12
--- php-src/run-tests.php:1.226.2.11    Thu Dec  8 19:30:41 2005
+++ php-src/run-tests.php       Fri Dec  9 04:50:30 2005
@@ -23,7 +23,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: run-tests.php,v 1.226.2.11 2005/12/09 00:30:41 helly Exp $ */
+/* $Id: run-tests.php,v 1.226.2.12 2005/12/09 09:50:30 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
@@ -333,7 +333,7 @@
                                        $html_output = is_resource($html_file);
                                        break;
                                case '--version':
-                                       echo "$Id: run-tests.php,v 1.226.2.11 
2005/12/09 00:30:41 helly Exp $\n";
+                                       echo "$Id: run-tests.php,v 1.226.2.12 
2005/12/09 09:50:30 helly Exp $\n";
                                        exit(1);
                                default:
                                        echo "Illegal switch '$switch' 
specified!\n";
@@ -961,7 +961,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, 
@@ -1641,7 +1643,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>";
                }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to