]> granicus.if.org Git - php/commitdiff
uncomment removal of temp file
authorShane Caraveo <shane@php.net>
Sun, 30 Mar 2003 05:00:03 +0000 (05:00 +0000)
committerShane Caraveo <shane@php.net>
Sun, 30 Mar 2003 05:00:03 +0000 (05:00 +0000)
update changes from run-tests

run-tests2.php

index a465290b9230eafa9ccf39087f754a21d0609b86..40b3a5e3e8d14916127d7253f8d0403dbccdc49f 100644 (file)
@@ -585,7 +585,7 @@ class testHarness {
                                        $out .= fread($fd, 8192);
                                fclose($fd);
                        }
-                       #unlink($tmp_file);
+                       unlink($tmp_file);
                        if ($removeheaders &&
                                preg_match("/^(.*?)\r?\n\r?\n(.*)/s", $this->incoming_payload, $match)) {
                                        return $match[2];
@@ -1436,7 +1436,7 @@ class testHarness {
                                $wanted_re = str_replace("%i", "[+\-]?[0-9]+", $wanted_re);
                                $wanted_re = str_replace("%d", "[0-9]+", $wanted_re);
                                $wanted_re = str_replace("%x", "[0-9a-fA-F]+", $wanted_re);
-                               $wanted_re = str_replace("%f", "[+\-]?\.?[0-9]+\.?[0-9]*", $wanted_re);
+                               $wanted_re = str_replace("%f", "[+\-]?\.?[0-9]+\.?[0-9]*(E-?[0-9]+)?", $wanted_re);
                                $wanted_re = str_replace("%c", ".", $wanted_re);
                                // %f allows two points "-.0.0" but that is the best *simple* expression
                        }