Professional Web Applications Themes

#22513 [Com]: imagettfbbox() returning bogus array values - PHP Development

ID: 22513 Comment by: nick at itomic dot com Reported By: jeremy at nirvani dot net Status: No Feedback Bug Type: GD related Operating System: linux 2.4.19 PHP Version: 5CVS-2003-03-03 (dev) New Comment: ok I am getting these strange values, on php4.3.2 with apache 1.3.28. on redhat 7.2, with imagettfbbox here is some example dump: width -1073758320 : height -5379645430array(8) { [0]=> int(60) [1]=> int(-1073758256) [2]=> int(-1073758264) [3]=> int(1077688217) [4]=> int(48) [5]=> int(0) [6]=> int(11288) [7]=> int(1078099916) } here is a url that will reproduce: [url]http://test.earth.itomic.com/build_text_image.php?imgStr=PRODUCT%20SPOTLIGHT&fo ntSize=14&font=v5loxicar[/url] the source is here: [url]http://test.earth.itomic.com/build_text_image.php.txt[/url] If this has been fixed in CVS, is ...

  1. #1

    Default #22513 [Com]: imagettfbbox() returning bogus array values

    ID: 22513
    Comment by: nick at itomic dot com
    Reported By: jeremy at nirvani dot net
    Status: No Feedback
    Bug Type: GD related
    Operating System: linux 2.4.19
    PHP Version: 5CVS-2003-03-03 (dev)
    New Comment:

    ok I am getting these strange values, on php4.3.2 with apache 1.3.28.
    on redhat 7.2, with imagettfbbox

    here is some example dump:

    width -1073758320 : height -5379645430array(8) {
    [0]=>
    int(60)
    [1]=>
    int(-1073758256)
    [2]=>
    int(-1073758264)
    [3]=>
    int(1077688217)
    [4]=>
    int(48)
    [5]=>
    int(0)
    [6]=>
    int(11288)
    [7]=>
    int(1078099916)
    }

    here is a url that will reproduce:
    [url]http://test.earth.itomic.com/build_text_image.php?imgStr=PRODUCT%20SPOTLIGHT&fo ntSize=14&font=v5loxicar[/url]

    the source is here:
    [url]http://test.earth.itomic.com/build_text_image.php.txt[/url]

    If this has been fixed in CVS, is there a version that works? or is
    there one that will be coming soon?


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

    [2003-06-26 01:00:02] php-bugs at lists dot php dot net

    No feedback was provided for this bug for over 2 weeks, so it is
    being suspended automatically. If you are able to provide the
    information that was originally requested, please do so and change
    the status of the bug back to "Open".

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

    [2003-06-10 19:15:11] [email]iliaaphp.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]



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

    [2003-06-03 10:06:02] veronique at talafone dot com

    I have the latest PHP build (4.3.2, 29-May-2003), running Apache 2 on
    Redhat 8.0, and I am still experiencing this bug. My configure line is
    as follows:

    './configure' '--with-apxs2=/usr/local/apache2/current/bin/apxs'
    '--with-mysql=/usr/local/mysql' '--with-zlib-dir=/usr/lib/'
    '--enable-versioning' '--enable-track-vars=yes' '--enable-url-includes'
    '--enable-sysvshm=yes' '--enable-sysvsem=yes' '--enable-ftp'
    '--with-config-file-path=/etc' '--with-gettext=/usr/local' '--with-gd'
    '--with-jpeg-dir=/usr/local/lib' '--with-imap=/usr/local/imap-2002c1'
    '--with-imap-ssl=/usr/local/openssl' '--with-pear'
    '--enable-gd-native-ttf' '--with-ttf'

    A print_r of the array returned by the function gives me something like
    this:
    Array ( [0] => 1108521344 [1] => 138256048 [2] => -1073758568 [3] =>
    1075360060 [4] => 1108521360 [5] => 1108517584 [6] => -1073758536 [7]
    => 1107767671 )

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

    [2003-03-03 13:36:21] jeremy at nirvani dot net

    Yes, as you may know, thttpd is not a threaded web server.

    Jeremy

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

    [2003-03-03 13:33:51] [email]iliaaphp.net[/email]

    You may experience problems if you use freetype in threaded enviroment,
    since that library is not thread-safe. But that does not affect thttpd
    afaik.

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/22513[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=22513&edit=1[/url]

    nick at itomic dot com Guest

  2. #2

    Default #22513 [Com]: imagettfbbox() returning bogus array values

    ID: 22513
    Comment by: nick at itomic dot com
    Reported By: jeremy at nirvani dot net
    Status: No Feedback
    Bug Type: GD related
    Operating System: linux 2.4.19
    PHP Version: 5CVS-2003-03-03 (dev)
    New Comment:

    as you will notice if you look at the example URL, it works fine. I
    compiled with the system library of GD, instead of the internal GD
    library. It now works fine.


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

    [2003-08-08 06:33:08] nick at itomic dot com

    ok I am getting these strange values, on php4.3.2 with apache 1.3.28.
    on redhat 7.2, with imagettfbbox

    here is some example dump:

    width -1073758320 : height -5379645430array(8) {
    [0]=>
    int(60)
    [1]=>
    int(-1073758256)
    [2]=>
    int(-1073758264)
    [3]=>
    int(1077688217)
    [4]=>
    int(48)
    [5]=>
    int(0)
    [6]=>
    int(11288)
    [7]=>
    int(1078099916)
    }

    here is a url that will reproduce:
    [url]http://test.earth.itomic.com/build_text_image.php?imgStr=PRODUCT%20SPOTLIGHT&fo ntSize=14&font=v5loxicar[/url]

    the source is here:
    [url]http://test.earth.itomic.com/build_text_image.php.txt[/url]

    If this has been fixed in CVS, is there a version that works? or is
    there one that will be coming soon?

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

    [2003-06-26 01:00:02] php-bugs at lists dot php dot net

    No feedback was provided for this bug for over 2 weeks, so it is
    being suspended automatically. If you are able to provide the
    information that was originally requested, please do so and change
    the status of the bug back to "Open".

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

    [2003-06-10 19:15:11] [email]iliaaphp.net[/email]

    Please try using this CVS snapshot:

    [url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

    For Windows:

    [url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]



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

    [2003-06-03 10:06:02] veronique at talafone dot com

    I have the latest PHP build (4.3.2, 29-May-2003), running Apache 2 on
    Redhat 8.0, and I am still experiencing this bug. My configure line is
    as follows:

    './configure' '--with-apxs2=/usr/local/apache2/current/bin/apxs'
    '--with-mysql=/usr/local/mysql' '--with-zlib-dir=/usr/lib/'
    '--enable-versioning' '--enable-track-vars=yes' '--enable-url-includes'
    '--enable-sysvshm=yes' '--enable-sysvsem=yes' '--enable-ftp'
    '--with-config-file-path=/etc' '--with-gettext=/usr/local' '--with-gd'
    '--with-jpeg-dir=/usr/local/lib' '--with-imap=/usr/local/imap-2002c1'
    '--with-imap-ssl=/usr/local/openssl' '--with-pear'
    '--enable-gd-native-ttf' '--with-ttf'

    A print_r of the array returned by the function gives me something like
    this:
    Array ( [0] => 1108521344 [1] => 138256048 [2] => -1073758568 [3] =>
    1075360060 [4] => 1108521360 [5] => 1108517584 [6] => -1073758536 [7]
    => 1107767671 )

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

    [2003-03-03 13:36:21] jeremy at nirvani dot net

    Yes, as you may know, thttpd is not a threaded web server.

    Jeremy

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/22513[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=22513&edit=1[/url]

    nick at itomic dot com Guest

Similar Threads

  1. Replies: 0
    Last Post: January 28th, 05:51 AM
  2. Replies: 0
    Last Post: November 8th, 10:06 AM
  3. #38536 [Com]: Returning an array of values instead of an object
    By marcus at corp dot grupos dot com dot br in forum PHP Bugs
    Replies: 0
    Last Post: November 7th, 06:50 PM
  4. Replies: 0
    Last Post: November 7th, 02:49 PM
  5. #38536 [NoF->Opn]: Returning an array of values instead of an object
    By sabrina at corp dot grupos dot com dot br in forum PHP Bugs
    Replies: 0
    Last Post: November 7th, 02:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139