Re: Re: imagettftext() test always fails.

From: Date: Sun, 24 Nov 2002 01:20:46 +0000
Subject: Re: Re: imagettftext() test always fails.
References: 1 2  Groups: php.qa 
Request: Send a blank email to php-qa+get-6984@lists.php.net to get a copy of this message
On November 23, 2002 07:37 pm, Moriyoshi Koizumi wrote: > "Ilia A." <ilia@prohost.org> wrote: > --snip > > > I've upgraded freetype to the latest stable release and the problem still > > persists, so it looks like something else is the culprit. > > Does this mean the problem still occurs with the "valid" font that was > attached in your previous mail? > > Anyway, it's my turn to try the downgraded freetype :) > > Moriyhoshi Heh, my fault with new freetype the test actual worked, but there were 3 memory leaks that caused it to fail. I've commited a patch that fixes the memory leaks and now the test works with both ZENDN___.TTF and the test8859.ttf. Ilia > > Ilia > > > > > Moriyoshi > > > > > > > > If the test font which I created dedicatedly for the test > > > > > turns out to be irregular to old versions of freetype, I have to > > > > > replace the test by a more proper one, or remove it. > > > > > > > > > > Moriyoshi > > > > > > > > > > > Ilia > > > > > > > > > > > > > If it was not, then my test should be bogus. > > > > > > > > > > > > > > Anyway thanks for the further investigation. > > > > > > > > > > > > > > Moriyoshi > > > > > > > > > > > > > > "Ilia A." <ilia@prohost.org> wrote: > > > > > > > > In your comments you've mentioned that a segmentation > > > > > > > > fault > > > > > > > > has been fixed, on my system it never occured. Even with > > > > > > > > your > > > > > > > > patch the test still fails. $im = imagecreatetruecolor(256, > > > > > > > > 256); var_dump(testrun($im, $fontfile_8859)); > > > > > > > > imagedestroy($im); > > > > > > > > > > > > > > > > returns FALSE instead of true. > > > > > > > > > > > > > > > > My PHP configuration flags that are GD related are as > > > > > > > > follows: --with-gd --with-jpeg-dir --with-png-dir --with-ttf > > > > > > > > --with-t1lib > > > > > > > > > > > > > > > > Ilia > > > > > > > > > > > > > > > > On November 23, 2002 04:53 pm, Moriyoshi Koizumi wrote: > > > > > > > > > I've just fixed this bug. Now it's ok. > > > > > > > > > Please see my recent patch on gdcache.c for detail. > > > > > > > > > > > > > > > > > > Moriyoshi > > > > > > > > > > > > > > > > > > "Ilia A." <ilia@prohost.org> wrote: > > > > > > > > > > The imagettftext() always fails on my machine and > > > > > > > > > > I see > > > > > > > > > > that it also fails for a number of other people > > > > > > > > > > based on > > > > > > > > > > QA reports. The cause of the failure is that when > > > > > > > > > > image > > > > > > > > > > is created using the imagecreatetruecolor() > > > > > > > > > > function > > > > > > > > > > rather then imagecreate() addition of the ttf text > > > > > > > > > > always > > > > > > > > > > fails. Is this a bogus test, bug in the code or > > > > > > > > > > something > > > > > > > > > > else? > > > > > > > > > > > > > > > > > > > > Ilia > > > > -- > > PHP Quality Assurance Mailing List > > <http://www.php.net/> > > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.qa (#6984) next »