Bug #78314 [Com]: ext gd.so, built & linked with freetype2, missing freetype support/functions
| From: | remi@php.net | Date: | Sun, 21 Jul 2019 05:35:30 +0000 |
| Subject: | Bug #78314 [Com]: ext gd.so, built & linked with freetype2, missing freetype support/functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-221872@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78314&edit=1
ID: 78314
Comment by: remi@php.net
Reported by: pgnet dot dev at gmail dot com
Summary: ext gd.so, built & linked with freetype2, missing
freetype support/functions
Status: Closed
Type: Bug
Package: GD related
Operating System: any
PHP Version: 7.4.0-dev
Assigned To: remi
Block user comment: N
Private report: N
New Comment:
$ sapi/cli/php -v
PHP 7.4.0-dev (cli) (built: Jul 20 2019 07:43:46) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0-dev, Copyright (c) Zend Technologies
$ sapi/cli/php --ri gd
gd
GD Support => enabled
GD headers Version => 2.2.5
GD library Version => 2.2.5
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.9.1
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 6b
PNG Support => enabled
libPNG Version => 1.6.34
WBMP Support => enabled
XPM Support => enabled
libXpm Version => 30411
XBM Support => enabled
WebP Support => enabled
BMP Support => enabled
TGA Read Support => enabled
Directive => Local Value => Master Value
gd.jpeg_ignore_warning => 1 => 1
Previous Comments:
------------------------------------------------------------------------
[2019-07-20 13:47:08] cmb@php.net
This has already been fixed Remi (see commit comment note above).
------------------------------------------------------------------------
[2019-07-20 13:42:16] pgnet dot dev at gmail dot com
the point is there's no freetype support,
php -r 'var_dump(gd_info());'
array(13) {
["GD Version"]=>
string(5) "2.2.5"
["FreeType Support"]=>
!!! bool(false)
["GIF Read Support"]=>
bool(true)
["GIF Create Support"]=>
bool(true)
["JPEG Support"]=>
bool(true)
["PNG Support"]=>
bool(true)
["WBMP Support"]=>
bool(true)
["XPM Support"]=>
bool(true)
["XBM Support"]=>
bool(true)
["WebP Support"]=>
bool(true)
["BMP Support"]=>
bool(true)
["TGA Read Support"]=>
bool(true)
["JIS-mapped Japanese Font Support"]=>
bool(false)
}
------------------------------------------------------------------------
[2019-07-20 13:40:04] pgnet dot dev at gmail dot com
The point is there's no "freeetype support",
php -r 'var_dump(gd_info());'
array(13) {
["GD Version"]=>
string(5) "2.2.5"
["FreeType Support"]=>
>>> bool(false)
["GIF Read Support"]=>
bool(true)
["GIF Create Support"]=>
bool(true)
["JPEG Support"]=>
bool(true)
["PNG Support"]=>
bool(true)
["WBMP Support"]=>
bool(true)
["XPM Support"]=>
bool(true)
["XBM Support"]=>
bool(true)
["WebP Support"]=>
bool(true)
["BMP Support"]=>
bool(true)
["TGA Read Support"]=>
bool(true)
["JIS-mapped Japanese Font Support"]=>
bool(false)
}
------------------------------------------------------------------------
[2019-07-20 10:59:01] danack@php.net
You're using single quotes around both the code, and also around the strings. I'm not sure
exactly what's happening, but PHP is telling you that it is encountering a "undefined
constant imagettfbbox".
Also, returning a boolean doesn't show any output. For debugging, try doing var_dump instead,
and use double-quotes for the strings:
php -r 'var_dump( function_exists("imagettfbbox") &&
function_exists("imagettftext"));'
------------------------------------------------------------------------
[2019-07-20 05:57:31] remi@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=a85e4d53367c9a4ccca09903dce3c7e30dcc04c7
Log: Fixed bug #78314 (missing freetype support/functions with external gd)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=78314
--
Edit this bug report at https://bugs.php.net/bug.php?id=78314&edit=1