From: next_ghost at quick dot cz
Operating system: Linux
PHP version: 5.2.6
PHP Bug Type: GD related
Bug description: imagepsbbox() built-in font support
Description:
------------
Documentation says that imagepsbbox() can calculate bounding box for
built-in fonts (font index 1 through 5). It doesn't work.
imagestring() which accepts built-in fonts uses php_find_gd_font() to load
font information. imagepsbbox() uses only ZEND_FETCH_RESOURCE().
Reproduce code:
---------------
$box = imagepsbbox("foo", 1, 1);
Expected result:
----------------
No warnings
Actual result:
--------------
Warning: imagepsbbox(): supplied argument is not a valid Type 1 font
resource in foo.php on line 1
--
Edit bug report at http://bugs.php.net/?id=45396&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45396&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45396&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45396&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45396&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45396&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45396&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45396&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45396&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45396&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45396&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45396&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45396&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45396&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45396&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45396&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45396&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45396&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45396&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45396&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45396&r=mysqlcfg