Bug #13097 Updated: strange linebreaks in decoded base64 string
| From: | sniper@php.net | Date: | Sun, 02 Sep 2001 20:41:25 +0000 |
| Subject: | Bug #13097 Updated: strange linebreaks in decoded base64 string | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64914@lists.php.net to get a copy of this message | ||
ID: 13097
Updated by: sniper
Reported By: simon@hornweb.ch
Old Status: Open
Status: Feedback
Bug Type: IMAP related
Operating System: WinNT 4.0
PHP Version: 4.0.4pl1
New Comment:
Do you happen to read that file with fopen() / fread() ?
Can you attach a complete but short example script?
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-09-02 15:46:48] simon@hornweb.ch
imap_base64 seems to produce strang linebreaks in a decoded string.
For example, I've a JPEG file to decode. The original file starts with the line
ÿØÿà JFIF H H ÿíjPhotoshop 3.0 8BIMí H H 8BIM
x8BIMó 8BIM
8BIM'
8BIMõ H /ff lff /ff ¡ 2 Z 5 -
8BIMø p ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿè
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿè ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿè
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿè 8BIM @ @ 8BIM 8BIM
Ù W p s ½ ÿØÿà JFIF H H ÿþ &File written by Adobe
Photoshop¨ 5.0ÿî Adobe d ÿÛ
ÿÀ p W" ÿÝ ÿÄ?
3
!1AQa"q2¡±B#$RÁb34rÑC%Sðáñcs5¢²&DTdE£t6ÒUâeò³ÃÓuãóF'¤
´ÄÔäô¥µÅÕåõVfv¦¶ÆÖæö7GWgw§·Ç×ç÷
5
!1AQaq"2¡±B#ÁRÑð3$bárCScs4ñ%¢²&5ÂÒDT£dEU6teâò³ÃÓuãóF¤
´ÄÔäô¥µÅÕåõVfv¦¶ÆÖæö'7GWgw§·ÇÿÚ
? ôGØácã¡Ò¢ÛÚÇîkµÀÈ
(sorry for this long stuff)
but the imap_base64 decoded string starts with
ÿØÿà JFIF H H ÿíjPhotoshop 3.0 8BIMí H H 8BIM
x8BIMó 8BIM
8BIM'
These linebreaks don't seem to have any ASCII number or something, they're just
linebreaks.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13097&edit=1