Permalink
Browse files

Added more entropy to tests that require uniqid()

  • Loading branch information...
derickr committed Feb 9, 2019
1 parent a19d536 commit 934cdc799462ab88086960dd4fb53cde109fd0c3
Showing with 4 additions and 4 deletions.
  1. +1 −1 tests/bug00002.phpt
  2. +1 −1 tests/bug00003.phpt
  3. +2 −2 tests/trace_with_naked_filename.phpt
@@ -15,7 +15,7 @@ xdebug.trace_format=0
require 'bug00002.inc';
$action = 'do_stuff';
$tf = xdebug_start_trace(sys_get_temp_dir() . '/bug00002.trace');
$tf = xdebug_start_trace(sys_get_temp_dir() . '/' . uniqid('', true) . 'bug00002.trace');
$action();
xdebug_stop_trace();
readfile($tf);
@@ -13,7 +13,7 @@ xdebug.trace_format=0
date.timezone=Europe/Oslo
--FILE--
<?php
$tf = xdebug_start_trace(sys_get_temp_dir() . '/bug00003-' . uniqid() . '.trace');
$tf = xdebug_start_trace(sys_get_temp_dir() . '/bug00003-' . uniqid('', true) . '.trace');
strftime('%b %l %Y %H:%M:%S', 1061728888);
xdebug_stop_trace();
readfile($tf);
@@ -12,12 +12,12 @@ xdebug.show_mem_delta=0
xdebug.trace_format=0
--FILE--
<?php
$tf = xdebug_start_trace(sys_get_temp_dir() . '/bug971' . uniqid(), XDEBUG_TRACE_COMPUTERIZED);
$tf = xdebug_start_trace(sys_get_temp_dir() . '/bug971' . uniqid('', true), XDEBUG_TRACE_COMPUTERIZED);
echo $tf, "\n";
xdebug_stop_trace();
unlink($tf);
$tf = xdebug_start_trace(sys_get_temp_dir() . '/bug971' . uniqid(), XDEBUG_TRACE_COMPUTERIZED | XDEBUG_TRACE_NAKED_FILENAME);
$tf = xdebug_start_trace(sys_get_temp_dir() . '/bug971' . uniqid('', true), XDEBUG_TRACE_COMPUTERIZED | XDEBUG_TRACE_NAKED_FILENAME);
echo $tf, "\n";
xdebug_stop_trace();
unlink($tf);

0 comments on commit 934cdc7

Please sign in to comment.