]> granicus.if.org Git - php/commitdiff
Fix race condition when ext/hash/tests run in parallel
authorSara Golemon <pollita@php.net>
Tue, 30 Apr 2013 23:28:37 +0000 (16:28 -0700)
committerSara Golemon <pollita@php.net>
Tue, 30 Apr 2013 23:28:37 +0000 (16:28 -0700)
ext/hash/tests/hash_file_basic.phpt
ext/hash/tests/hash_file_error.phpt

index 9851c14b916929f88356cec724a12f2e05883ec5..b16927d20ed9cf62b92d92c84d5b86994bd1ec96 100644 (file)
@@ -15,7 +15,7 @@ Felix De Vliegher <felix.devliegher@gmail.com>
 echo "*** Testing hash_file() : basic functionality ***\n";
 
 // Set up file
-$filename = 'hash_file_example.txt';
+$filename = 'hash_file_basic_example.txt';
 file_put_contents( $filename, 'The quick brown fox jumped over the lazy dog.' );
 
 var_dump( hash_file( 'md5', $filename ) );
@@ -30,7 +30,7 @@ var_dump( base64_encode( hash_file( 'md5', $filename, true ) ) );
 --CLEAN--
 <?php
 
-$filename = 'hash_file_example.txt';
+$filename = 'hash_file_basic_example.txt';
 unlink( $filename );
 
 ?>
index 326fbd51a5c9bdcff3f71b21a95e80bb675980cd..e1380301c28e0f37b39765a156972fe662a16f06 100644 (file)
@@ -15,7 +15,7 @@ Felix De Vliegher <felix.devliegher@gmail.com>
 echo "*** Testing hash_file() : error conditions ***\n";
 
 // Set up file
-$filename = 'hash_file_example.txt';
+$filename = 'hash_file_error_example.txt';
 file_put_contents( $filename, 'The quick brown fox jumped over the lazy dog.' );
 
 
@@ -38,7 +38,7 @@ var_dump( hash_file( 'md5', $filename, false, $extra_arg ) );
 --CLEAN--
 <?php
 
-$filename = 'hash_file_example.txt';
+$filename = 'hash_file_error_example.txt';
 unlink( $filename );
 
 ?>