ID: 25905
Updated by: [EMAIL PROTECTED]
Reported By: sitnikov at infonet dot ee
Status: Closed
Bug Type: Feature/Change Request
Operating System: *
PHP Version: 4CVS-2003-10-18 (stable)
Assigned To: helly
New Comment:
Also see: Bug #13213 Unknown image format
Previous Comments:
------------------------------------------------------------------------
[2003-12-15 17:03:04] [EMAIL PROTECTED]
The code you mentioned is to support the 'standard' error in writing
wrong jpeg files. I do not plan to add any additional workarounds for
any other software whose manufacturer cannot read a standard. If you
feel a need for this go ahead and show me a working patch. If that does
not hurt robustness too much, i will consider applying it.
------------------------------------------------------------------------
[2003-10-20 10:41:48] sitnikov at infonet dot ee
reopen
------------------------------------------------------------------------
[2003-10-19 06:03:48] [EMAIL PROTECTED]
Well it's a valid point you can take. Probably i'll even adapt the code
for getImageSize() but not now.
------------------------------------------------------------------------
[2003-10-19 05:21:36] sitnikov at infonet dot ee
ok, why you implement this ?
/* get marker byte, swallowing possible padding */
if ( last_marker==M_COM && comment_correction) {
/* some software does not count the length bytes of COM section */
/* one company doing so is very much envolved in JPEG... so we accept
too */
/* by the way: some of those companies changed their code now... */
comment_correction = 2;
} else {
last_marker = 0;
comment_correction = 0;
}
------------------------------------------------------------------------
[2003-10-19 04:56:21] [EMAIL PROTECTED]
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Your image file is corrupt and i don\'t think i will implement a
special handling for all wrong software out there. That would lead to
unrobust php code.
------------------------------------------------------------------------
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/25905
--
Edit this bug report at http://bugs.php.net/?id=25905&edit=1