Bug #76160 [NEW]: Font not loaded if path holds semi collon

From: Date: Thu, 29 Mar 2018 09:48:54 +0000
Subject: Bug #76160 [NEW]: Font not loaded if path holds semi collon
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214517@lists.php.net to get a copy of this message
From:             deepdiver at owncloud dot com
Operating system: Debian Linux
PHP version:      Irrelevant
Package:          GD related
Bug Type:         Bug
Bug description:Font not loaded if path holds semi collon

Description:
------------
As soon as a semi-collon is in the path the font can no longer be
loaded.

Tested with php 5.6 as well as php 7.2

Test script:
---------------
<?php

$fontFile = __DIR__ . '/fonts/foo;bar/OpenSans-Regular.ttf';
$image = imagecreate(128, 128);
$textColor = imagecolorallocate($image, 0, 0, 0);
imagettftext($image, 18, 0, 0, 0, $textColor, $fontFile, 'lorem');



-- 
Edit bug report at https://bugs.php.net/bug.php?id=76160&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=76160&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=76160&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=76160&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=76160&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=76160&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=76160&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=76160&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=76160&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=76160&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=76160&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=76160&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=76160&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=76160&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76160&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=76160&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=76160&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=76160&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76160&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=76160&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=76160&r=mysqlcfg



Thread (8 messages)

« previous php.bugs (#214517) next »