Req #17925 [Opn->Wfx]: separate gd.fontpath ini setting and honor safe_mode

From: Date: Sat, 08 Nov 2014 07:03:59 +0000
Subject: Req #17925 [Opn->Wfx]: separate gd.fontpath ini setting and honor safe_mode
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188514@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=17925&edit=1 ID: 17925 Updated by: remi@php.net Reported by: mfischer@php.net Summary: separate gd.fontpath ini setting and honor safe_mode -Status: Open +Status: Wont fix Type: Feature/Change Request Package: GD related Operating System: Any PHP Version: 4.0CVS-2002-06-22 Block user comment: N Private report: N New Comment: We are sorry, but we can not support PHP 4 related problems anymore. 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 https://bugs.php.net/bug.php?id=17925&edit=1

« previous php.bugs (#188514) next »