php.net |  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
Votes:4
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: mfischer@php.net Assigned:
Status: Wont fix Package: GD related
PHP Version: 4.0CVS-2002-06-22 OS: Any
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-06-22 13:12 UTC] mfischer@php.net
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 .

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-01 00:53 UTC] jani@php.net
-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] remi@php.net
-Status: Open +Status: Wont fix
 [2014-11-08 07:03 UTC] remi@php.net
We are sorry, but we can not support PHP 4 related problems anymore.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 08:01:30 2024 UTC