File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ User Group: PHP-WVL & PHPGent #PHPTestFest
7
7
gd
8
8
--FILE--
9
9
<?php
10
- $ filename = __DIR__ . '/font .gdf ' ;
10
+ $ filename = __DIR__ . '/imageloadfont_end_of_file_while_reading_header .gdf ' ;
11
11
12
12
// End of file while reading header
13
13
$ bin = "\x41\x41\x41\x41\x00\x00\x00\x00\x00\x00" ;
@@ -25,7 +25,7 @@ $font = imageloadfont($filename);
25
25
?>
26
26
--CLEAN--
27
27
<?php
28
- unlink (__DIR__ .'/font .gdf ' );
28
+ unlink (__DIR__ .'/imageloadfont_end_of_file_while_reading_header .gdf ' );
29
29
?>
30
30
--EXPECTF--
31
31
Warning: imageloadfont(): End of file while reading header in %s on line %d
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ imageloadfont() function crashes
4
4
gd
5
5
--FILE--
6
6
<?php
7
- $ filename = __DIR__ . '/font .gdf ' ;
7
+ $ filename = __DIR__ . '/imageloadfont_invalid .gdf ' ;
8
8
$ bin = "\x41\x41\x41\x41\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00" ;
9
9
$ fp = fopen ($ filename , 'wb ' );
10
10
fwrite ($ fp , $ bin );
You can’t perform that action at this time.
0 commit comments