ID: 45396
Updated by: [EMAIL PROTECTED]
Reported By: next_ghost at quick dot cz
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: Linux
PHP Version: 5.2.6
New Comment:
This is not a bug, but rather a documentation issue. Ill patch up the
documentation...
Previous Comments:
------------------------------------------------------------------------
[2008-07-01 00:25:35] next_ghost at quick dot cz
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 this bug report at http://bugs.php.net/?id=45396&edit=1