Bug #17925: PHP should have a separate gd.fontpath ini setting and honor safe_mode
| From: | mfischer@php.net | Date: | Sat, 22 Jun 2002 17:12:48 +0000 |
| Subject: | Bug #17925: PHP should have a separate gd.fontpath ini setting and honor safe_mode | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-11803@lists.php.net to get a copy of this message | ||
From: mfischer@php.net
Operating system: Any
PHP version: 4.0CVS-2002-06-22
PHP Bug Type: GD related
Bug description: PHP should have a separate gd.fontpath ini setting and honor safe_mode
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 bug report at http://bugs.php.net/?id=17925&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17925&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17925&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17925&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17925&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17925&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17925&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17925&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17925&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17925&r=globals