Bug #61988 [Ver->Asn]: imagettftext() does not support UNC Paths

From: Date: Tue, 24 Oct 2017 05:26:50 +0000
Subject: Bug #61988 [Ver->Asn]: imagettftext() does not support UNC Paths
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211951@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: kalle@php.net Reported by: rudi at rudiv dot se Summary: imagettftext() does not support UNC Paths -Status: Verified +Status: Assigned Type: Bug Package: GD related Operating System: Windows Server 2008 R2 PHP Version: 5.3.13 Assigned To: cmb Block user comment: N Private report: N 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

« previous php.bugs (#211951) next »