Bug #78314 [->Opn]: pgnd

From: Date: Sat, 20 Jul 2019 13:42:16 +0000
Subject: Bug #78314 [->Opn]: pgnd
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221866@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 User updated by: pgnet dot dev at gmail dot com Reported by: pgnet dot dev at gmail dot com Summary: pgnd -Status: +Status: Open Type: Bug -Package: memcached +Package: GD related Operating System: any -PHP Version: 5.4.5 +PHP Version: 7.4.0-dev Block user comment: N Private report: N New Comment: 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) } Previous Comments: ------------------------------------------------------------------------ [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) ------------------------------------------------------------------------ [2019-07-20 04:24:31] pgnet dot dev at gmail dot com Description: ------------ with ``` php -v PHP 7.4.0-dev (cli) (built: Jun 22 2019 21:50:55) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0-dev, Copyright (c) Zend Technologies with Zend OPcache v7.4.0-dev, Copyright (c), by Zend Technologies ``` and freetype2 libs installed ``` rpm -qa | egrep -i "freetype2|libfreetype" libfreetype6-2.10.1-lp151.170.1.x86_64 freetype2-devel-2.10.1-lp151.170.1.x86_64 pkg-config --libs --cflags freetype2 -I/usr/include/freetype2 -lfreetype ``` building ext gd with freetype support ``` cd /usr/local/src/php7-src/ext/gd ./configure \ --enable-shared --disable-static \ --enable-gd \ --with-external-gd \ --with-webp \ --with-jpeg \ --with-xpm \ --with-freetype \ --with-gnu-ld ... checking for FreeType 2... yes ... make make install ``` checking, module 'gd' is installed, ``` php -m | grep gd gd ``` & linked, ``` ldd gd.so | grep freetype libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00007fbcf300b000) ``` but freetype support is not enabled, ``` php -i ... gd GD Support => enabled GD headers Version => 2.2.5 GD library Version => 2.2.5 GIF Read Support => enabled GIF Create Support => enabled JPEG Support => enabled libJPEG Version => 8 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 ... ``` and checking for freetype functions FAILs ``` php -r 'return function_exists('imagettfbbox') && function_exists('imagettftext');' PHP Warning: Use of undefined constant imagettfbbox - assumed 'imagettfbbox' (this will throw an Error in a future version of PHP) in Command line code on line 1 Warning: Use of undefined constant imagettfbbox - assumed 'imagettfbbox' (this will throw an Error in a future version of PHP) in Command line code on line 1 ``` ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=78314&edit=1

« previous php.bugs (#221866) next »