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

ID: 19145
Updated by: daniel.oconnor@gmail.com
Reported By: e dot mazovetskiy at gmail dot com
Summary: wrong function call
Status: Open
Type: Bug
Package: Image_Barcode2
Operating System: Ubuntu 4.9
Package Version: 0.1.0
PHP Version: 5.3.2
Roadmap Versions:
New Comment:

Thanks for the heads up!


Previous Comments:
------------------------------------------------------------------------

[2011-12-18 23:21:10] em86

Description:
------------
Barcode2.php - error on line 85

should be:
$img = $obj->image($text, $imgtype);

instead of:
$img = $obj->draw($text, $imgtype);

Test script:
---------------
require_once('Image/Barcode2.php');///usr/share/php/
Image_Barcode2::draw('12345678901234', 'Code39');


Expected result:
----------------
image with barcode expected

Actual result:
--------------
Warning: include_once(Image/Barcode2/png.php): failed to open stream: No
such file or directory in /usr/share/php/Image/Barcode2.php on line 70
Warning: include_once(): Failed opening 'Image/Barcode2/png.php' for
inclusion (include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/php/Image/Barcode2.php on line 70

------------------------------------------------------------------------

Search Discussions

  • Daniel Oconnor at Dec 19, 2011 at 8:52 am
    Edit report at https://pear.php.net/bugs/bug.php?id=19145&edit=1

    ID: 19145
    Updated by: daniel.oconnor@gmail.com
    Reported By: e dot mazovetskiy at gmail dot com
    Summary: wrong function call
    Status: Open
    Type: Bug
    Package: Image_Barcode2
    Operating System: Ubuntu 4.9
    Package Version: 0.1.0
    PHP Version: 5.3.2
    -Assigned To:
    +Assigned To: doconnor
    Roadmap Versions:
    New Comment:

    -Assigned To:
    +Assigned To: doconnor



    Previous Comments:
    ------------------------------------------------------------------------

    [2011-12-19 09:51:29] doconnor

    Thanks for the heads up!

    ------------------------------------------------------------------------

    [2011-12-18 23:21:10] em86

    Description:
    ------------
    Barcode2.php - error on line 85

    should be:
    $img = $obj->image($text, $imgtype);

    instead of:
    $img = $obj->draw($text, $imgtype);

    Test script:
    ---------------
    require_once('Image/Barcode2.php');///usr/share/php/
    Image_Barcode2::draw('12345678901234', 'Code39');


    Expected result:
    ----------------
    image with barcode expected

    Actual result:
    --------------
    Warning: include_once(Image/Barcode2/png.php): failed to open stream: No
    such file or directory in /usr/share/php/Image/Barcode2.php on line 70
    Warning: include_once(): Failed opening 'Image/Barcode2/png.php' for
    inclusion (include_path='.:/usr/share/php:/usr/share/pear') in
    /usr/share/php/Image/Barcode2.php on line 70

    ------------------------------------------------------------------------
  • Daniel Oconnor at Dec 19, 2011 at 12:05 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=19145&edit=1

    ID: 19145
    Updated by: daniel.oconnor@gmail.com
    Reported By: e dot mazovetskiy at gmail dot com
    Summary: wrong function call
    -Status: Assigned
    +Status: Closed
    Type: Bug
    Package: Image_Barcode2
    Operating System: Ubuntu 4.9
    Package Version: 0.1.0
    PHP Version: 5.3.2
    Assigned To: doconnor
    Roadmap Versions:
    New Comment:

    -Status: Assigned
    +Status: Closed
    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:
    ------------------------------------------------------------------------

    [2011-12-19 09:52:22] doconnor

    -Assigned To:
    +Assigned To: doconnor


    ------------------------------------------------------------------------

    [2011-12-19 09:51:29] doconnor

    Thanks for the heads up!

    ------------------------------------------------------------------------

    [2011-12-18 23:21:10] em86

    Description:
    ------------
    Barcode2.php - error on line 85

    should be:
    $img = $obj->image($text, $imgtype);

    instead of:
    $img = $obj->draw($text, $imgtype);

    Test script:
    ---------------
    require_once('Image/Barcode2.php');///usr/share/php/
    Image_Barcode2::draw('12345678901234', 'Code39');


    Expected result:
    ----------------
    image with barcode expected

    Actual result:
    --------------
    Warning: include_once(Image/Barcode2/png.php): failed to open stream: No
    such file or directory in /usr/share/php/Image/Barcode2.php on line 70
    Warning: include_once(): Failed opening 'Image/Barcode2/png.php' for
    inclusion (include_path='.:/usr/share/php:/usr/share/pear') in
    /usr/share/php/Image/Barcode2.php on line 70

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 19, '11 at 8:51a
activeDec 19, '11 at 12:05p
posts3
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 3 posts

People

Translate

site design / logo © 2021 Grokbase