FAQ
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

Description:
------------
Received the following error messages after upgrading from PHP 5.2.13 to
5.3.2:

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
present.


Test script:
---------------
<?php
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
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 10, '11 at 11:44a
activeDec 10, '11 at 11:44a
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2021 Grokbase