mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
fix font handling in vdir mode
This commit is contained in:
parent
4ebcdd9929
commit
aa032e2e4c
@ -2754,8 +2754,14 @@ void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int extende
|
||||
|
||||
str = (unsigned char *) Z_STRVAL_PP(C);
|
||||
l = strlen(str);
|
||||
fontname = (unsigned char *) Z_STRVAL_PP(FONTNAME);
|
||||
|
||||
#ifdef VIRTUAL_DIR
|
||||
if(virtual_filepath(Z_STRVAL_PP(FONTNAME), &fontname)) {
|
||||
fontname = (unsigned char*)Z_STRVAL_PP(FONTNAME);
|
||||
}
|
||||
#else
|
||||
fontname = (unsigned char*)Z_STRVAL_PP(FONTNAME);
|
||||
#endif
|
||||
|
||||
#ifdef USE_GD_IMGSTRTTF
|
||||
# if HAVE_LIBFREETYPE
|
||||
|
Loading…
Reference in New Issue
Block a user