note 68045 added to function.imagecreatetruecolor

From: Date: Tue, 11 Jul 2006 16:09:46 +0000
Subject: note 68045 added to function.imagecreatetruecolor
Groups: php.notes 
Request: Send a blank email to php-notes+get-114672@lists.php.net to get a copy of this message
I had a strange bug occurring under Debian Linux with PHP5. In file B (where I create the image) I included a file (file A). The image that was produced was always corrupt. When I did not include file A, everything was fine. After 2 hours of searching I found that there were some extra spaces and linefeeds after the PHP closing tag ?> in file A. After removing those chars, everything works fine again. Obviously those extra bytes of file A were added to the image and corrupted it. ---- Server IP: 66.163.161.117 Probable Submitter: 217.111.5.124 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.imagecreatetruecolor.php Edit -- http://master.php.net/note/edit/68045 Del: integrated -- http://master.php.net/note/delete/68045/integrated Del: useless -- http://master.php.net/note/delete/68045/useless Del: bad code -- http://master.php.net/note/delete/68045/bad+code Del: spam -- http://master.php.net/note/delete/68045/spam Del: non-english -- http://master.php.net/note/delete/68045/non-english Del: in docs -- http://master.php.net/note/delete/68045/in+docs Del: other reasons-- http://master.php.net/note/delete/68045 Reject -- http://master.php.net/note/reject/68045 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114672) next »