Re: type1 fonts with gd under php-4.2.3
| From: | Jani Taskinen | Date: | Fri, 20 Sep 2002 01:02:02 +0000 |
| Subject: | Re: type1 fonts with gd under php-4.2.3 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-88491@lists.php.net to get a copy of this message | ||
Should be fixed in both stable and dev branches.
--Jani
On Sat, 14 Sep 2002, Lars Magne Ingebrigtsen wrote:
>Apache segfaults when trying to use type1 fonts (via t1lib, gd and
>php). The following patch fixes this:
>
>
>--- gd.c~ Tue Sep 3 15:09:29 2002
>+++ gd.c Sat Sep 14 15:52:21 2002
>@@ -3130,6 +3130,7 @@
> if (zend_get_parameters_ex(12, &img, &str, &fnt, &sz, &fg,
> &bg,\
> &px, &py, &sp, &wd, &ang, &aas) == FAILURE) {
> RETURN_FALSE;
> }
>+ convert_to_string_ex(str);
> convert_to_long_ex(sp);
> convert_to_long_ex(aas);
> convert_to_long_ex(wd);
>
>
>(I think I posted a similar patch way back when for php-4.0.6, but it
>was apparently not applied.)
>
>
--
<- For Sale! ->