File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,22 @@ Bug #48555 (ImageFTBBox() differs from previous versions for texts with new line
10
10
$ cwd = dirname (__FILE__ );
11
11
$ font = "$ cwd/Tuffy.ttf " ;
12
12
$ box = ImageFTBBox (14 , 0 , $ font , "Text without line-break " );
13
- echo 'Top without line-break: ' . $ box [7 ] . "\n" ;
13
+ //echo 'Top without line-break: ' . $box[7] . "\n";
14
+ $ without_line_break = $ box [7 ];
14
15
$ box = ImageFTBBox (14 , 0 , $ font , "Text with \nline-break \none more " );
15
- echo 'Top with line-break: ' . $ box [7 ] . "\n" ;
16
+ //echo 'Top with line-break: ' . $box[7] . "\n";
17
+ $ with_line_break = $ box [7 ];
18
+
19
+ var_dump ($ without_line_break );
20
+ var_dump ($ with_line_break );
21
+ if ($ with_line_break ==$ without_line_break ) {
22
+ echo "with line break == without line break " .PHP_EOL ;
23
+ } else {
24
+ echo "with line break != without line break " .PHP_EOL ;
25
+ }
26
+
16
27
?>
17
28
--EXPECTF--
18
- Top without line-break: -14
19
- Top with line-break: -14
29
+ int(-%d)
30
+ int(-%d)
31
+ with line break == without line break
You can’t perform that action at this time.
0 commit comments