#17925 [Opn]: PHP should have a separate gd.fontpath ini setting and honor safe_mode

From: Date: Mon, 28 Oct 2002 17:03:25 +0000
Subject: #17925 [Opn]: PHP should have a separate gd.fontpath ini setting and honor safe_mode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23579@lists.php.net to get a copy of this message
ID: 17925 Updated by: sterling@php.net Reported By: mfischer@php.net Status: Open -Bug Type: GD related +Bug Type: Feature/Change Request Operating System: Any PHP Version: 4.0CVS-2002-06-22 New Comment: reclassifying... Previous Comments: ------------------------------------------------------------------------ [2002-06-22 13:12:48] 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 . ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17925&edit=1

« previous php.bugs (#23579) next »