mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-10 11:01:14 +00:00
Fix bug with gd-jis
This commit is contained in:
18
tests/mods/modules/gd/gd-ttf-cyrillic.php
Normal file
18
tests/mods/modules/gd/gd-ttf-cyrillic.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* This page should print 'OK' if everything works,
|
||||
* 'FAIL' or nothing if an error occured.
|
||||
*/
|
||||
ini_set('display_startup_errors', 1);
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(-1);
|
||||
|
||||
|
||||
$dir = realpath(dirname(__FILE__));
|
||||
$font = $dir . DIRECTORY_SEPARATOR . 'ptsans-regular.ttf';
|
||||
|
||||
if ( ($bbox = imagettfbbox(10, 0, $font, 'текст на русском языке не работает')) === FALSE ) {
|
||||
echo 'FAIL: imagettfbox()';
|
||||
exit(1);
|
||||
}
|
||||
echo 'OK';
|
||||
BIN
tests/mods/modules/gd/ptsans-regular.ttf
Normal file
BIN
tests/mods/modules/gd/ptsans-regular.ttf
Normal file
Binary file not shown.
Reference in New Issue
Block a user