I am trying to use a GD function: imagettfbbox(), but it is undefined. I have compiled my own build of PHP with argon2 support since I am on Ubuntu 21.10.
I am configuring as such:
./configure --with-password-argon2 --with-jpeg --with-freetype --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-ftp --enable-mbstring --enable-shmop --enable-sigchild --enable-soap --enable-sockets --enable-sysvmsg --enable-gd-native-ttf --with-gd --with-curl --with-gettext --with-openssl --with-pdo-mysql --with-zlib
I have finally found all the ./configure options I need as stated above. However, --with-gd and --enable-gd-native-ttf are unrecognized and will not integrate with my build. How do I access the aforementioned function? I cannot find any recent information (in the last 10 years) on this subject, as it seems --with-gd might have been deprecated in php 7.2. I am building the latest version (PHP 8.2-dev). Thanks in advance
CodePudding user response:
--enable-gd-native-ttf is deprecated as per the image documentation:
To enable support for native TrueType string function add --enable-gd-native-ttf. (This option has no effect and has been removed as of PHP 7.2.0.)
Also --with-gd was replaced with --enable-gd.
