Skip to content

Commit

Permalink
Merge branch 'PHP-7.4'
Browse files Browse the repository at this point in the history
* PHP-7.4:
  Properly clean up test case
  • Loading branch information
cmb69 committed Feb 22, 2019
2 parents 258c7fb + f319419 commit a848ed3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ for ($i = 0; $i < $how_many; $i++) {
}

$start = realpath(dirname(__FILE__));
$newstart = false;
if (strlen($start) <= 248) {
// create the exact length
$start = $start . "\\" . str_repeat('a', 251 - strlen($start) - 1);
$newstart = true;
}

var_dump($start);
Expand All @@ -47,6 +49,9 @@ for ($i = 0; $i < $how_many; $i++) {
$p0 = substr($p, 0, strlen($p) - $i*51);
rmdir($p0);
}
if ($newstart) {
rmdir($start);
}

?>
===DONE===
Expand Down

0 comments on commit a848ed3

Please sign in to comment.