type1 fonts with gd under php-4.2.3

From: Date: Sat, 14 Sep 2002 13:57:17 +0000
Subject: type1 fonts with gd under php-4.2.3
Groups: php.dev 
Request: Send a blank email to php-dev+get-88321@lists.php.net to get a copy of this message
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.) -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen

« previous php.dev (#88321) next »