Skip to content

Commit 69b2570

Browse files
committed
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: Fix bug #61480 test bug - ext/gd/tests/bug48555.phpt updated the NEWS with the latest fileinfo changes Conflicts: NEWS
2 parents 7cccb6b + 381edb4 commit 69b2570

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

ext/gd/tests/bug48555.phpt

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)