php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61480
Patch bug48555 revision 2012-04-03 22:20 UTC by mattficken@php.net
revision 2012-03-22 21:07 UTC by mattficken@php.net

Patch bug48555 for Testing related Bug #61480

Patch version 2012-04-03 22:20 UTC

Return to Bug #61480 | Download this patch
Patch Revisions:

Developer: mattficken@php.net

--- ext/gd/tests/bug48555.phpt	Thu Mar 29 10:38:00 2012
+++ ext/gd/tests/bug48555.phpt	Tue Apr 03 11:20:53 2012
@@ -10,10 +10,22 @@
 $cwd = dirname(__FILE__);
 $font = "$cwd/Tuffy.ttf";
 $box = ImageFTBBox(14, 0, $font, "Text without line-break");
-echo 'Top without line-break: ' . $box[7] . "\n";
+//echo 'Top without line-break: ' . $box[7] . "\n";
+$without_line_break = $box[7];
 $box = ImageFTBBox(14, 0, $font, "Text with\nline-break\none more");
-echo 'Top with line-break: ' . $box[7] . "\n";
+//echo 'Top with line-break: ' . $box[7] . "\n";
+$with_line_break = $box[7];
+
+var_dump($without_line_break);
+var_dump($with_line_break);
+if ($with_line_break==$without_line_break) {
+  echo "with line break == without line break".PHP_EOL;
+} else {
+  echo "with line break != without line break".PHP_EOL;	
+}
+
 ?>
 --EXPECTF--
-Top without line-break: -14
-Top with line-break: -14
+int(-%d)
+int(-%d)
+with line break == without line break
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 28 09:01:30 2024 UTC