note 78155 added to function.imagettfbbox

From: Date: Mon, 01 Oct 2007 01:07:53 +0000
Subject: note 78155 added to function.imagettfbbox
Groups: php.notes 
Request: Send a blank email to php-notes+get-130953@lists.php.net to get a copy of this message
Just a note to prevent others form making this mistake, Luke Scott is defining twice a constant.... I really don't know how you could even test that function, did you? The following is wrong, kids, don't do this at home: //----------------------------------------- // Establish a base size to create text //----------------------------------------- if( ! is_int( DRAW_TTF_BASE ) ) { define( 'DRAW_TTF_BASE', 72); } if( $size >= DRAW_TTF_BASE ) { define( 'DRAW_TTF_BASE', $size * 2 ); } ---- Server IP: 69.147.83.197 Probable Submitter: 201.228.100.73 ---- Manual Page -- http://www.php.net/manual/en/function.imagettfbbox.php Edit -- https://master.php.net/note/edit/78155 Del: integrated -- https://master.php.net/note/delete/78155/integrated Del: useless -- https://master.php.net/note/delete/78155/useless Del: bad code -- https://master.php.net/note/delete/78155/bad+code Del: spam -- https://master.php.net/note/delete/78155/spam Del: non-english -- https://master.php.net/note/delete/78155/non-english Del: in docs -- https://master.php.net/note/delete/78155/in+docs Del: other reasons-- https://master.php.net/note/delete/78155 Reject -- https://master.php.net/note/reject/78155 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130953) next »