|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-03 13:36 UTC] derick@php.net
[2006-06-03 13:44 UTC] rafal dot bartoszek at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 12:00:01 2025 UTC |
Description: ------------ pleas run the script and take look on the last line of source imagettftext has the same problem.PHP 5.0.2 probably imagefttext have problem witch varible like $a[$b] Reproduce code: --------------- <?php function create_img($kod){ $img = imagecreatetruecolor(200, 50); $arr= str_split((string)$kod); for($i=0; $i<5; $i++){ imagefttext($img, '30', '0', (5+$i*26), '40', hexdec('FFFFFF'), 'Arial', $arr[$i]); } header('Content-type: image/png'); echo imagepng($img); echo ' kod = '.$kod.' arr = '.$arr['0'].$arr['1'].$arr['2'].$arr['3'].$arr['4']; } create_img(rand(10000,99999)); ?> Expected result: ---------------- look source(i mean Ctr+U in mozilla) Actual result: -------------- look image