Skip to content

Commit 481cdea

Browse files
committed
Fix file clash in gd tests
1 parent 1def88d commit 481cdea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/gd/tests/imageloadfont_end_of_file_while_reading_header.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ User Group: PHP-WVL & PHPGent #PHPTestFest
77
gd
88
--FILE--
99
<?php
10-
$filename = __DIR__ . '/font.gdf';
10+
$filename = __DIR__ . '/imageloadfont_end_of_file_while_reading_header.gdf';
1111

1212
// End of file while reading header
1313
$bin = "\x41\x41\x41\x41\x00\x00\x00\x00\x00\x00";
@@ -25,7 +25,7 @@ $font = imageloadfont($filename);
2525
?>
2626
--CLEAN--
2727
<?php
28-
unlink(__DIR__.'/font.gdf');
28+
unlink(__DIR__.'/imageloadfont_end_of_file_while_reading_header.gdf');
2929
?>
3030
--EXPECTF--
3131
Warning: imageloadfont(): End of file while reading header in %s on line %d

ext/gd/tests/imageloadfont_invalid.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ imageloadfont() function crashes
44
gd
55
--FILE--
66
<?php
7-
$filename = __DIR__ . '/font.gdf';
7+
$filename = __DIR__ . '/imageloadfont_invalid.gdf';
88
$bin = "\x41\x41\x41\x41\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00";
99
$fp = fopen($filename, 'wb');
1010
fwrite($fp, $bin);

0 commit comments

Comments
 (0)