|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #17925 separate gd.fontpath ini setting and honor safe_mode
Submitted: 2002-06-22 13:12 UTC Modified: 2014-11-08 20:41 UTC
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: Assigned:
Status: Wont fix Package: GD related
PHP Version: 4.0CVS-2002-06-22 OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2002-06-22 13:12 UTC]
A new ini setting for setting a permanent font path should be introduced. Using putenv("GDFONTPATH=.."); is not a nice way. Now that it's bundled we can properly fix this.

gd.fontpath = c:\somewhere\over;f:\the\rainbow

This should be settable by the user too, e.g. ini_set().

If gd.fontpath is NOT set it should default to c:\winnt\fonts on win32 and /usr/share/fonts/truetype on unix systems.

Also safe_mode setting should be honored if ttf file's are accessed, e.g. no ini_set() to change the gd.fontpath from the mater value and no support for absolute paths (but should be supported in non-safe_mode).

The fontname should either be a fontname with or without the trailing .ttf extension. If it's not provided, it should also try to load it with .ttf .


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 00:53 UTC]
-Summary: PHP should have a separate gd.fontpath ini setting and honor safe_mode +Summary: separate gd.fontpath ini setting and honor safe_mode -Package: Feature/Change Request +Package: GD related
 [2014-11-08 07:03 UTC]
-Status: Open +Status: Wont fix
 [2014-11-08 07:03 UTC]
We are sorry, but we can not support PHP 4 related problems anymore.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 30 15:01:24 2023 UTC