com php-src: Don't use uniqid for temporary POST data files: run-tests.php

From: Date: Wed, 20 Feb 2019 15:01:15 +0000
Subject: com php-src: Don't use uniqid for temporary POST data files: run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-104783@lists.php.net to get a copy of this message
Commit: 967fa51db01c5342a6f18b841a9003b62bed26a4 Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 20 Feb 2019 16:01:15 +0100 Parents: e5304bb647613da0776e216afb427129d8895b3a Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=967fa51db01c5342a6f18b841a9003b62bed26a4 Log: Don't use uniqid for temporary POST data files uniqid() is not necessarily unique when multiple testing processes run in parallel. Changed paths: M run-tests.php Diff: diff --git a/run-tests.php b/run-tests.php index f9f484c..037b5d9 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1973,7 +1973,7 @@ TEST $file $temp_clean = $temp_dir . DIRECTORY_SEPARATOR . $main_file_name . 'clean.php'; $test_clean = $test_dir . DIRECTORY_SEPARATOR . $main_file_name . 'clean.php'; $preload_filename = $temp_dir . DIRECTORY_SEPARATOR . $main_file_name . 'preload.php'; - $tmp_post = $temp_dir . DIRECTORY_SEPARATOR . uniqid('/phpt.'); + $tmp_post = $temp_dir . DIRECTORY_SEPARATOR . $main_file_name . 'post'; $tmp_relative_file = str_replace(__DIR__ . DIRECTORY_SEPARATOR, '', $test_file) . 't'; if ($temp_source && $temp_target) {

« previous php.cvs (#104783) next »