Bug #61988 [Asn->Sus]: imagettftext() does not support UNC Paths
| From: | cmb@php.net | Date: | Tue, 24 Oct 2017 16:24:05 +0000 |
| Subject: | Bug #61988 [Asn->Sus]: imagettftext() does not support UNC Paths | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-212284@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61988&edit=1
ID: 61988
Updated by: cmb@php.net
Reported by: rudi at rudiv dot se
Summary: imagettftext() does not support UNC Paths
-Status: Assigned
+Status: Suspended
Type: Bug
Package: GD related
Operating System: Windows Server 2008 R2
PHP Version: 5.3.13
-Assigned To: cmb
+Assigned To:
Block user comment: N
Private report: N
New Comment:
I have filed a ticket against libgd[1], and suspend this ticket
until the issue is resolved upstream.
[1] <https://github.com/libgd/libgd/issues/413>
Previous Comments:
------------------------------------------------------------------------
[2016-09-04 17:36:24] cmb@php.net
Confirmed. This is a libgd issue[1], and as such should be fixed
upstream first.
[1] <https://github.com/libgd/libgd/blob/gd-2.2.3/src/gdft.c#L1686-L1701>
------------------------------------------------------------------------
[2012-05-10 08:32:18] rudi at rudiv dot se
Description:
------------
GD does not support UNC paths to fonts in the standard format of \\SERVER\Share\File\Path.ext.
Instead, //SERVER\Share\File\Path.ext must be used.
Test script:
---------------
<?php
$gdimg = imagecreatetruecolor(200, 200);
$color = imagecolorallocate($gdimg, 0, 0, 0);
imagettftext($gdimg, 5, 5, '\\\\WEBFARM1\WEBDATA\fonts\arial.ttf', 'Test!');
header('Content-Type: image/jpeg');
imagejpeg($gdimg);
Expected result:
----------------
There will be no errors.
Actual result:
--------------
Warning: imagettftext(): Could not find/open font in \\WEBFARM1\WEBDATA\webroot\test.local\font.php
on line 6
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61988&edit=1