Edit report at https://pear.php.net/bugs/bug.php?id=17353&edit=1

ID: 17353
Updated by: daniel.oconnor@gmail.com
Reported By: rsafran at thesafrans dot com
Summary: GD Image font functions given string parameters where
integers expected
-Status: Open
+Status: Closed
Type: Bug
Package: Image_Barcode
Operating System: Linux 2.6.31-gentoo-r1
Package Version: 1.1.0
PHP Version: 5.3.2
-Assigned To:
+Assigned To: doconnor
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: doconnor
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

Previous Comments:

[2010-10-10 11:21:29] gemorroj

Added #patch bug:17353;patch:path;revision:1286709689;.


[2010-04-28 14:57:48] rsafran

Received the following error messages after upgrading from PHP 5.2.13 to

PHP Warning: imagefontheight() expects parameter 1 to be long, string
given in /usr/share/php5/PEAR/Image/Barcode/Code39.php on line 186
PHP Warning: imagefontwidth() expects parameter 1 to be long, string
given in /usr/share/php5/PEAR/Image/Barcode/Code39.php on line 187
PHP Warning: imagestring() expects parameter 2 to be long, string given
in /usr/share/php5/PEAR/Image/Barcode/Code39.php on line 225

The parameter being passed is the literal string "GDFontSmall". The
manual page for these functions say that the parameter must be an
integer representing a known font.

The barcode image is returned, but the text underneath the code is not

Test script:
require_once 'Image/Barcode.php';
Image_Barcode::draw(123456, 'Code39', 'png');

Expected result:
The barcode image should include the text of the numeric value

Actual result:
The barcode image without the text


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppear-bugs @
postedDec 10, '11 at 11:44a
activeDec 10, '11 at 11:44a

1 user in discussion

Daniel Oconnor: 1 post



site design / logo © 2022 Grokbase