| Index: LayoutTests/http/tests/navigation/resources/save-Ping.php
 | 
| diff --git a/LayoutTests/http/tests/navigation/resources/save-Ping.php b/LayoutTests/http/tests/navigation/resources/save-Ping.php
 | 
| index 0e9c2fb5dd0e4d1156cb29721d6c44990d1340b8..d818de93f9195ec7309653df38d685487dde8212 100644
 | 
| --- a/LayoutTests/http/tests/navigation/resources/save-Ping.php
 | 
| +++ b/LayoutTests/http/tests/navigation/resources/save-Ping.php
 | 
| @@ -1,5 +1,7 @@
 | 
|  <?php
 | 
| -$pingFile = fopen("ping.txt.tmp", 'w');
 | 
| +require_once '../../resources/portabilityLayer.php';
 | 
| +
 | 
| +$pingFile = fopen(sys_get_temp_dir() . "/ping.txt.tmp", 'w');
 | 
|  $httpHeaders = $_SERVER;
 | 
|  ksort($httpHeaders, SORT_STRING);
 | 
|  foreach ($httpHeaders as $name => $value) {
 | 
| @@ -7,7 +9,7 @@ foreach ($httpHeaders as $name => $value) {
 | 
|          fwrite($pingFile, "$name: $value\n");
 | 
|  }
 | 
|  fclose($pingFile);
 | 
| -rename("ping.txt.tmp", "ping.txt");
 | 
| +rename(sys_get_temp_dir() . "/ping.txt.tmp", sys_get_temp_dir() . "/ping.txt");
 | 
|  foreach ($_COOKIE as $name => $value)
 | 
|      setcookie($name, "deleted", time() - 60, "/");
 | 
|  ?>
 | 
| 
 |