php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37953 Wrong letters on image.
Submitted: 2006-06-29 02:12 UTC Modified: 2006-07-07 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: theboywhogotlost at gmail dot com Assigned:
Status: No Feedback Package: GD related
PHP Version: 5.1.4 OS: Windows XP, Red Hat linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-06-29 02:12 UTC] theboywhogotlost at gmail dot com
Description:
------------
I put some letters into an array I then want to get some random letters so I use rand to selet a number between 0 and 25 I then put them together like this $letters[$ran_num]; this works fine.

I want 5 random letters so I do it the above useing $ran_num, $ran_num2 ect... I then put $letters[$ran_num], $letters[$ran_num2] into an array called $text.

Now on my image I want each random letter to appear I also want a text string of the random letters so I do a foreach($text as $g){$string .= $g; <more code to write letter to image>}

teh text on the image is differant than the text in teh string and I'm writeing $g to teh image.

Reproduce code:
---------------
http://thephpguy.com/gd_bug.zip

Requires .gdf font (one font provided)

Expected result:
----------------
Letters on image should be the same as the string.

Actual result:
--------------
Random letters on the image string is correct.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-29 08:08 UTC] tony2001@php.net
Cannot reproduce.
I see exactly on the image and in the string.
 [2006-07-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 13 13:01:31 2024 UTC