ID: 15771
Comment by: okumurya at hotmail dot com
Reported By: darkwings at 263 dot net
Status: No Feedback
Bug Type: Feature/Change Request
Operating System: windows
PHP Version: 5CVS
Assigned To: wez
New Comment:
In PHP 4.4.2, I also encounter this ploblem.
I will store data as follows:
00000000 ff d8 ff e0 00 10 4a 46 49 46 00 01 02 00 00 64
|......JFIF.....d|
00000010 00 64 00 00 ff fe 00 12 41 64 6f 62 65 20 49 6d
|.d......Adobe Im|
00000020 61 67 65 52 65 61 64 79 ff ec 00 11 44 75 63 6b
|ageReady....Duck|
.
.
.
But, PHP really stores data as follows:
00000000 00 00 10 00 4a 00 46 00 49 00 46 00 00 00 01 00
|....J.F.I.F.....|
00000010 02 00 00 00 00 00 64 00 00 00 64 00 00 00 00 00
|......d...d.....|
00000020 00 00 12 00 41 00 64 00 6f 00 62 00 65 00 20 00
|....A.d.o.b.e. .|
.
.
.
May I reopen this issue?
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2004-09-28 01:00:02] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2004-09-20 12:36:15] [EMAIL PROTECTED]
please try PHP 5.0.1 and let us know if this works
------------------------------------------------------------------------
[2003-11-17 22:36:40] [EMAIL PROTECTED]
Wez, please check this one out.
------------------------------------------------------------------------
[2002-03-12 06:15:05] darkwings at 263 dot net
i think it is not necessary to rewrite,just use a function
like binarywrite() in asp(Active Server Page),
int binarywrite ($variant,$source)
return the length copied.
------------------------------------------------------------------------
[2002-03-11 13:04:50] [EMAIL PROTECTED]
hmm, this is a bit difficult because strings become usually translated
into unicode which is usually a good thing(tm) but unfortunatelly not
in this case.
as i'm actually rewriting the whole thing for php5/ZE2 i don't think
that i'll address this yet.
harald
ps: don't use ado, it's sloooooooooooow :)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/15771
--
Edit this bug report at http://bugs.php.net/?id=15771&edit=1