UTF-8 font file names are not yet supported on Windows[1], so we're skipping
the respective tests on this platform, but enable them on other platforms.
[1] <http://news.php.net/php.internals.win/1142>
<?php
if(!extension_loaded('gd')){ die('skip gd extension not available'); }
if(!function_exists('imagefttext')) die('skip imagefttext() not available');
- if (substr(PHP_OS, 0, 3) != 'WIN') {
- die('skip.. only for Windows');
- }
+ if (substr(PHP_OS, 0, 3) == 'WIN') die('skip UTF-8 font file names not yet supported on Windows');
?>
---XFAIL--
-seems freetype issue, to investigate
--FILE--
<?php
$cwd = dirname(__FILE__);
--CLEAN--
<?php @unlink(dirname(__FILE__) . '/bug48732私はガラスを食べられます.png'); ?>
--EXPECTF--
-Left Bottom: (0, 47)
+Left Bottom: (0, 46)
<?php
if(!extension_loaded('gd')){ die('skip gd extension not available'); }
if(!function_exists('imageftbbox')) die('skip imageftbbox() not available');
+ if (substr(PHP_OS, 0, 3) == 'WIN') die('skip UTF-8 font file names not yet supported on Windows');
?>
--FILE--
<?php