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
1010$ cwd = dirname (__FILE__ );
1111$ font = "$ cwd/Tuffy.ttf " ;
1212$ 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 ];
1415$ 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+
1627?>
1728--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