RE : Bug #9125: image file corrupted when upload

From: Date: Wed, 14 Feb 2001 14:45:20 +0000
Subject: RE : Bug #9125: image file corrupted when upload
Groups: php.db php.dev 
Request: Send a blank email to php-db+get-6610@lists.php.net to get a copy of this message
Try this it worked for me : http://bugs.php.net/bugs.php?id=9014&edit=2 This new rpm correct the bug > -------------------------------------------------------- > Olivier JOUBERT > Hébergement web et télématique > RFI Informatique, Groupe YONI > Société de Service et d'Ingénierie en Informatique et Télématique > 12, Avenue Pierre de Coubertin > Z. I. Percevalière - 7410 > 38174 SEYSSINET-PARISET Cedex > France > http://www.yoni.fr > Tél : (33) 04 76 84 25 84 Fax : (33) 04 76 84 25 85 > ~~~~~~\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\~~~~~~ > E-mail : olivier_joubert@yoni.fr > --------------------------------------------------------- > > > ----- Original Message ----- From: <samuele_catuzzi@yahoo.it> To: <php-dev@lists.php.net> Sent: Wednesday, February 07, 2001 1:48 AM Subject: [PHP-DEV] Bug #9125: image file corrupted when upload From: samuele_catuzzi@yahoo.it Operating system: Linux redhat 6.2 & SuSE 7.0 on intel platform PHP version: 3.0.17 PHP Bug Type: Other Bug description: image file corrupted when upload -php 3.0.18 under RedHat linux 6.2 , apache 1.3.14 -php 3.0.16 and 4.0.3pl1 under SuSE linux 7.0 , apache 1.3.12 I try to use upload files mechanism _in a correct manner_ with gif images files: - under Windows98 i have no problems, the files are upload correctly - under Linux with same version of php, the upload mechanism work but image file result corrupted then I try to open corrupted file and original file with hexeditor and surprise! I have found that the head of corrupted file begin like this: 0000 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 69 6d Content- Type: im 0010 61 67 65 2f 67 69 66 0d 0a 0d 0a 47 49 46 38 37 age/gif. ...GIF87 0020 61 98 01 4a 00 f7 00 00 00 00 00 ff ff ff 00 00 a..J.÷.. ....ÿÿÿ.. a correct image file begin like this: 0000 47 49 46 38 37 61 98 01 4a 00 f7 00 00 00 00 00 GIF87a.. J.÷..... 0010 ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 ÿÿÿ..... ......... I also tryed with jpeg , bmp , tif and these files are uploaded correctly on SuSE 7.0 php 4.0.3pl1 . on RedHat 6.2 php 3.0.18 JPEG, files (and other??) some time are uploaded correctly but some time are corrupted with same bug: 0000 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 69 6d Content- Type: im 0010 61 67 65 2f 6a 70 65 67 0d 0a 0d 0a ff d8 ff e0 age/jpeg .....ÿØÿà the problem may be apache versions or some library versions ??? with this bug I have a big problem for my work, for now I have try to write a little C program that correct files corrupted but I prefer a real solution! help me! Samuele Catuzzi (from latina, italy)

« previous php.db (#6610) next »