ID:          37920
 Updated by:  [EMAIL PROTECTED]
 Reported By: agiorgio at optonline dot net
-Status:      Open
+Status:      Feedback
 Bug Type:    *Compile Issues
 PHP Version: 5.1.5CVS
 New Comment:

You forgot to explain what the problem is.


Previous Comments:
------------------------------------------------------------------------

[2006-06-26 21:23:41] agiorgio at optonline dot net

Description:
------------
There are hardcoded ASCII values in cgi_main.c.  0x10 should be '\n'
and 0x13 should be '\r'.

Reproduce code:
---------------
while (c != 10 && c != 13) {
        c = fgetc(file_handle.handle.fp);       /* skip to end of line */
}
/* handle situations where line is terminated by \r\n */
if (c == 13) {
        if (fgetc(file_handle.handle.fp) != 10) {
                long pos = ftell(file_handle.handle.fp);
                fseek(file_handle.handle.fp, pos - 1, SEEK_SET);
        }
}



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37920&edit=1

Reply via email to