source: src/router/php7/ext/gd/tests/bug48801-mb.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 734 bytes
Line 
1--TEST--
2Bug #48801 (Problem with imagettfbbox)
3--SKIPIF--
4<?php
5        if(!extension_loaded('gd')){ die('skip gd extension not available'); }
6        if(!function_exists('imageftbbox')) die('skip imageftbbox() not available');
7        if (substr(PHP_OS, 0, 3) == 'WIN') die('skip UTF-8 font file names not yet supported on Windows');
8?>
9--FILE--
10<?php
11$cwd = dirname(__FILE__);
12$font = "$cwd/Tuffy私はガラスを食べられたす.ttf";
13$bbox = imageftbbox(50, 0, $font, "image");
14echo '(' . $bbox[0] . ', ' . $bbox[1] . ")\n";
15echo '(' . $bbox[2] . ', ' . $bbox[3] . ")\n";
16echo '(' . $bbox[4] . ', ' . $bbox[5] . ")\n";
17echo '(' . $bbox[6] . ', ' . $bbox[7] . ")\n";
18?>
19--EXPECTREGEX--
20\(4, 15\)
21\(16[0-1], 15\)
22\(16[0-1], -4[7-8]\)
23\(4, -4[7-8]\)
Note: See TracBrowser for help on using the repository browser.