ID: 37920 User updated by: agiorgio at optonline dot net Reported By: agiorgio at optonline dot net -Status: Feedback +Status: Open Bug Type: *Compile Issues -Operating System: +Operating System: z/OS PHP Version: 5.1.5CVS New Comment:
This code does not compile correctly on non-ASCII systems, like IBM z/OS. Previous Comments: ------------------------------------------------------------------------ [2006-06-26 21:36:39] [EMAIL PROTECTED] You forgot to explain what the problem is. ------------------------------------------------------------------------ [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