Test: /ext/gd/tests/bug53504.phpt - Version 7.3.8        

Bug #53504 imagettfbbox gives incorrect values for bounding box
Submitted: 2010-12-09 10:59:20 Modified: 2016-09-23 12:50:46
From: chris Assigned: cmb
Status: Closed Package: GD related
PHP Version: 5.3.3 OS: Windows 7

There are 2 different diffs reported by users for this test.

Count Diff
2 (67%)
002+ imageftbbox and imagefttext differ!
003+ imageftbbox and imagefttext differ!
004- 3: ........
005- 4: ........
006- 5: ........
007- 6: ........
008- 7: ........
009- 8: ........
010- 9: ........
011- 10: ........
012- 11: ........
013- 12: ........
014- 13: ........
015- 14: ........
016- 15: ........
017- 16: ........
018- 17: ........
019- 18: ........
005+ imageftbbox and imagefttext differ!
006+ imageftbbox and imagefttext differ!
007+ imageftbbox and imagefttext differ!
008+ imageftbbox and imagefttext differ!
009+ imageftbbox and imagefttext differ!
010+ imageftbbox and imagefttext differ!
012+ imageftbbox and imagefttext differ!
013+ imageftbbox and imagefttext differ!
014+ imageftbbox and imagefttext differ!
015+ imageftbbox and imagefttext differ!
016+ 3: ..(expected 386, got 395).(expected 386, got 395)...
017+ imageftbbox and imagefttext differ!
018+ imageftbbox and imagefttext differ!
019+ 4: ..(expected 51, got 57).(expected 51, got 57)...
020+ imageftbbox and imagefttext differ!
021+ imageftbbox and imagefttext differ!
022+ imageftbbox and imagefttext differ!
023+ imageftbbox and imagefttext differ!
024+ 5: ..(expected 21, got 27).(expected 21, got 27)...
025+ imageftbbox and imagefttext differ!
026+ imageftbbox and imagefttext differ!
027+ 6: ..(expected 21, got 28).(expected 21, got 28)...
028+ imageftbbox and imagefttext differ!
029+ imageftbbox and imagefttext differ!
030+ 7: ..(expected 17, got 25).(expected 17, got 25)...
031+ imageftbbox and imagefttext differ!
032+ imageftbbox and imagefttext differ!
033+ 8: ..(expected 60, got 68).(expected 60, got 68)...
034+ imageftbbox and imagefttext differ!
035+ imageftbbox and imagefttext differ!
036+ 9: .(expected 107, got 85).(expected 107, got 85)....
037+ imageftbbox and imagefttext differ!
038+ imageftbbox and imagefttext differ!
039+ 10: (expected 70, got 55)(expected 81, got 65)(expected 131, got 118)(expected 31, got 12)....
040+ imageftbbox and imagefttext differ!
041+ imageftbbox and imagefttext differ!
042+ imageftbbox and imagefttext differ!
043+ 11: (expected 107, got 85).(expected 107, got 85).....
044+ imageftbbox and imagefttext differ!
045+ imageftbbox and imagefttext differ!
046+ imageftbbox and imagefttext differ!
047+ imageftbbox and imagefttext differ!
048+ imageftbbox and imagefttext differ!
049+ imageftbbox and imagefttext differ!
050+ 12: ........
051+ imageftbbox and imagefttext differ!
052+ imageftbbox and imagefttext differ!
053+ imageftbbox and imagefttext differ!
054+ imageftbbox and imagefttext differ!
055+ imageftbbox and imagefttext differ!
056+ imageftbbox and imagefttext differ!
057+ 13: (expected -19, got -16).......
058+ imageftbbox and imagefttext differ!
059+ imageftbbox and imagefttext differ!
060+ imageftbbox and imagefttext differ!
061+ imageftbbox and imagefttext differ!
062+ imageftbbox and imagefttext differ!
063+ imageftbbox and imagefttext differ!
064+ imageftbbox and imagefttext differ!
065+ imageftbbox and imagefttext differ!
066+ 14: ..(expected 107, got 110)..(expected -157, got -161)..
067+ imageftbbox and imagefttext differ!
068+ imageftbbox and imagefttext differ!
069+ imageftbbox and imagefttext differ!
070+ imageftbbox and imagefttext differ!
071+ imageftbbox and imagefttext differ!
072+ 15: ..(expected 93, got 96).....
073+ imageftbbox and imagefttext differ!
074+ imageftbbox and imagefttext differ!
075+ imageftbbox and imagefttext differ!
076+ imageftbbox and imagefttext differ!
077+ imageftbbox and imagefttext differ!
078+ imageftbbox and imagefttext differ!
079+ 16: ........
080+ imageftbbox and imagefttext differ!
081+ imageftbbox and imagefttext differ!
082+ 17: .(expected -19, got -16).(expected -19, got -16)....
083+ imageftbbox and imagefttext differ!
084+ imageftbbox and imagefttext differ!
085+ imageftbbox and imagefttext differ!
086+ imageftbbox and imagefttext differ!
087+ 18: ..(expected 329, got 343).(expected 329, got 343)...
088+ imageftbbox and imagefttext differ!
089+ imageftbbox and imagefttext differ!
1 (33%)
001+ Warning: imageftbbox(): libgd was not built with FreeType font support
002+ in %s/bug53504.php on line 45
003+ 0: .(expected 15, got )(expected 208, got )(expected 15, got )(expected 208, got )(expected -48, got ).(expected -48, got )
004+
005+ Warning: imagefttext(): libgd was not built with FreeType font support
006+ in %s/bug53504.php on line 58
007+
008+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
009+ imageftbbox and imagefttext differ!
010+ imageftbbox and imagefttext differ!
011+
012+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
013+
014+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
015+
016+ Warning: imageftbbox(): libgd was not built with FreeType font support
017+ in %s/bug53504.php on line 45
018+ 1: (expected 15, got )(expected -1, got )(expected 15, got )(expected -208, got )(expected -48, got )(expected -208, got )(expected -48, got )(expected -2, got )
019+
001- 0: ........
002- 1: ........
003- 2: ........
004- 3: ........
005- 4: ........
006- 5: ........
007- 6: ........
008- 7: ........
009- 8: ........
010- 9: ........
011- 10: ........
012- 11: ........
013- 12: ........
014- 13: ........
015- 14: ........
016- 15: ........
017- 16: ........
018- 17: ........
019- 18: ........
020+ Warning: imagefttext(): libgd was not built with FreeType font support
021+ in %s/bug53504.php on line 58
022+
023+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
024+ imageftbbox and imagefttext differ!
025+ imageftbbox and imagefttext differ!
026+
027+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
028+
029+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
030+
031+ Warning: imageftbbox(): libgd was not built with FreeType font support
032+ in %s/bug53504.php on line 45
033+ 2: (expected 11, got )(expected 11, got )(expected 169, got )(expected -122, got )(expected 129, got )(expected -171, got )(expected -30, got )(expected -39, got )
034+
035+ Warning: imagefttext(): libgd was not built with FreeType font support
036+ in %s/bug53504.php on line 58
037+
038+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
039+ imageftbbox and imagefttext differ!
040+ imageftbbox and imagefttext differ!
041+
042+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
043+
044+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
045+
046+ Warning: imageftbbox(): libgd was not built with FreeType font support
047+ in %s/bug53504.php on line 45
048+ 3: (expected 8, got ).(expected 386, got ).(expected 386, got )(expected -97, got )(expected 8, got )(expected -97, got )
049+
050+ Warning: imagefttext(): libgd was not built with FreeType font support
051+ in %s/bug53504.php on line 58
052+
053+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
054+ imageftbbox and imagefttext differ!
055+ imageftbbox and imagefttext differ!
056+
057+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
058+
059+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
060+
061+ Warning: imageftbbox(): libgd was not built with FreeType font support
062+ in %s/bug53504.php on line 45
063+ 4: (expected 7, got )(expected -37, got )(expected 51, got )(expected -37, got )(expected 51, got )(expected -46, got )(expected 7, got )(expected -46, got )
064+
065+ Warning: imagefttext(): libgd was not built with FreeType font support
066+ in %s/bug53504.php on line 58
067+
068+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
069+ imageftbbox and imagefttext differ!
070+ imageftbbox and imagefttext differ!
071+
072+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
073+
074+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
075+
076+ Warning: imageftbbox(): libgd was not built with FreeType font support
077+ in %s/bug53504.php on line 45
078+ 5: (expected 7, got )(expected 15, got )(expected 21, got )(expected 15, got )(expected 21, got )(expected -13, got )(expected 7, got )(expected -13, got )
079+
080+ Warning: imagefttext(): libgd was not built with FreeType font support
081+ in %s/bug53504.php on line 58
082+
083+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
084+ imageftbbox and imagefttext differ!
085+ imageftbbox and imagefttext differ!
086+
087+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
088+
089+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
090+
091+ Warning: imageftbbox(): libgd was not built with FreeType font support
092+ in %s/bug53504.php on line 45
093+ 6: (expected 7, got )(expected 1, got )(expected 21, got )(expected 1, got )(expected 21, got )(expected -13, got )(expected 7, got )(expected -13, got )
094+
095+ Warning: imagefttext(): libgd was not built with FreeType font support
096+ in %s/bug53504.php on line 58
097+
098+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
099+ imageftbbox and imagefttext differ!
100+ imageftbbox and imagefttext differ!
101+
102+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
103+
104+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
105+
106+ Warning: imageftbbox(): libgd was not built with FreeType font support
107+ in %s/bug53504.php on line 45
108+ 7: (expected 8, got )(expected 0, got )(expected 17, got )(expected 0, got )(expected 17, got )(expected -95, got )(expected 8, got )(expected -95, got )
109+
110+ Warning: imagefttext(): libgd was not built with FreeType font support
111+ in %s/bug53504.php on line 58
112+
113+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
114+ imageftbbox and imagefttext differ!
115+ imageftbbox and imagefttext differ!
116+
117+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
118+
119+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
120+
121+ Warning: imageftbbox(): libgd was not built with FreeType font support
122+ in %s/bug53504.php on line 45
123+ 8: (expected 5, got )(expected 29, got )(expected 60, got )(expected 29, got )(expected 60, got )(expected -72, got )(expected 5, got )(expected -72, got )
124+
125+ Warning: imagefttext(): libgd was not built with FreeType font support
126+ in %s/bug53504.php on line 58
127+
128+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
129+ imageftbbox and imagefttext differ!
130+ imageftbbox and imagefttext differ!
131+
132+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
133+
134+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
135+
136+ Warning: imageftbbox(): libgd was not built with FreeType font support
137+ in %s/bug53504.php on line 45
138+ 9: .(expected 107, got )(expected 80, got )(expected 107, got )(expected 80, got )(expected -29, got ).(expected -29, got )
139+
140+ Warning: imagefttext(): libgd was not built with FreeType font support
141+ in %s/bug53504.php on line 58
142+
143+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
144+ imageftbbox and imagefttext differ!
145+ imageftbbox and imagefttext differ!
146+
147+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
148+
149+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
150+
151+ Warning: imageftbbox(): libgd was not built with FreeType font support
152+ in %s/bug53504.php on line 45
153+ 10: (expected 70, got )(expected 81, got )(expected 131, got )(expected 31, got )(expected 43, got )(expected -74, got )(expected -18, got )(expected -24, got )
154+
155+ Warning: imagefttext(): libgd was not built with FreeType font support
156+ in %s/bug53504.php on line 58
157+
158+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
159+ imageftbbox and imagefttext differ!
160+ imageftbbox and imagefttext differ!
161+
162+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
163+
164+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
165+
166+ Warning: imageftbbox(): libgd was not built with FreeType font support
167+ in %s/bug53504.php on line 45
168+ 11: (expected 107, got )(expected -1, got )(expected 107, got )(expected -80, got )(expected -29, got )(expected -80, got )(expected -29, got )(expected -2, got )
169+
170+ Warning: imagefttext(): libgd was not built with FreeType font support
171+ in %s/bug53504.php on line 58
172+
173+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
174+ imageftbbox and imagefttext differ!
175+ imageftbbox and imagefttext differ!
176+
177+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
178+
179+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
180+
181+ Warning: imageftbbox(): libgd was not built with FreeType font support
182+ in %s/bug53504.php on line 45
183+ 12: (expected 0, got )(expected -4, got )(expected 0, got )(expected -165, got )(expected -47, got )(expected -165, got )(expected -47, got )(expected -4, got )
184+
185+ Warning: imagefttext(): libgd was not built with FreeType font support
186+ in %s/bug53504.php on line 58
187+
188+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
189+ imageftbbox and imagefttext differ!
190+ imageftbbox and imagefttext differ!
191+
192+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
193+
194+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
195+
196+ Warning: imageftbbox(): libgd was not built with FreeType font support
197+ in %s/bug53504.php on line 45
198+ 13: (expected -19, got )(expected -2, got )(expected -18, got )(expected -167, got )(expected -29, got )(expected -167, got )(expected -29, got )(expected -2, got )
199+
200+ Warning: imagefttext(): libgd was not built with FreeType font support
201+ in %s/bug53504.php on line 58
202+
203+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
204+ imageftbbox and imagefttext differ!
205+ imageftbbox and imagefttext differ!
206+
207+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
208+
209+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
210+
211+ Warning: imageftbbox(): libgd was not built with FreeType font support
212+ in %s/bug53504.php on line 45
213+ 14: (expected 3, got )(expected -3, got )(expected 107, got )(expected -127, got )(expected 70, got )(expected -157, got )(expected -34, got )(expected -33, got )
214+
215+ Warning: imagefttext(): libgd was not built with FreeType font support
216+ in %s/bug53504.php on line 58
217+
218+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
219+ imageftbbox and imagefttext differ!
220+ imageftbbox and imagefttext differ!
221+
222+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
223+
224+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
225+
226+ Warning: imageftbbox(): libgd was not built with FreeType font support
227+ in %s/bug53504.php on line 45
228+ 15: (expected -13, got )(expected -13, got )(expected 93, got )(expected -141, got )(expected 85, got )(expected -147, got )(expected -21, got )(expected -20, got )
229+
230+ Warning: imagefttext(): libgd was not built with FreeType font support
231+ in %s/bug53504.php on line 58
232+
233+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
234+ imageftbbox and imagefttext differ!
235+ imageftbbox and imagefttext differ!
236+
237+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
238+
239+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
240+
241+ Warning: imageftbbox(): libgd was not built with FreeType font support
242+ in %s/bug53504.php on line 45
243+ 16: (expected 4, got )(expected 0, got )(expected 165, got )(expected 0, got )(expected 165, got )(expected -47, got )(expected 4, got )(expected -47, got )
244+
245+ Warning: imagefttext(): libgd was not built with FreeType font support
246+ in %s/bug53504.php on line 58
247+
248+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
249+ imageftbbox and imagefttext differ!
250+ imageftbbox and imagefttext differ!
251+
252+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
253+
254+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
255+
256+ Warning: imageftbbox(): libgd was not built with FreeType font support
257+ in %s/bug53504.php on line 45
258+ 17: .(expected -19, got )(expected 167, got )(expected -19, got )(expected 167, got )(expected -29, got ).(expected -29, got )
259+
260+ Warning: imagefttext(): libgd was not built with FreeType font support
261+ in %s/bug53504.php on line 58
262+
263+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
264+ imageftbbox and imagefttext differ!
265+ imageftbbox and imagefttext differ!
266+
267+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
268+
269+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67
270+
271+ Warning: imageftbbox(): libgd was not built with FreeType font support
272+ in %s/bug53504.php on line 45
273+ 18: (expected 16, got )(expected 59, got )(expected 329, got )(expected 59, got )(expected 329, got )(expected -190, got )(expected 16, got )(expected -190, got )
274+
275+ Warning: imagefttext(): libgd was not built with FreeType font support
276+ in %s/bug53504.php on line 58
277+
278+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
279+ imageftbbox and imagefttext differ!
280+ imageftbbox and imagefttext differ!
281+
282+ Warning: count(): Parameter must be an array or an object that implements Countable in %s/bug53504.php on line 61
283+
284+ Warning: imagepolygon() expects parameter 2 to be array, bool given in %s/bug53504.php on line 67