Bug #60146 [Com]: Last 2 lines of page not being output
Edit report at https://bugs.php.net/bug.php?id=60146&edit=1 ID: 60146 Comment by: david dot gero at ec dot gc dot ca Reported by:david dot gero at ec dot gc dot ca Summary:Last 2 lines of page not being output Status: Feedback Type: Bug Package:Built-in web server Operating System: Windows XP PHP Version:5.4.0beta2 Block user comment: N Private report: N New Comment: Tried using curl from cygwin to access the page, and the last two lines are missing the same way, so the problem is not Internet Explorer Previous Comments: [2011-10-27 15:00:56] david dot gero at ec dot gc dot ca Looks like I was wrong about the test script being truncated above. Just didn't scroll far enough to the right. So, if you can't reproduce, whereas it fails every time for me, I've uploaded my php.ini file. There are no errors in php_error.log I'm testing on Windows XP with Service Pack 3, running the following startup.cmd: @echo off title PHP start "PHP" /MAX php -S 127.0.0.1:8000 -t \repos\gerod\html exit testflush.php is in \repos\gerod\html\admin\testflush.php Using Internet Explorer 7 at http://localhost:8000/admin/testflush.php Page->View Source shows that the last two lines were never output [2011-10-27 14:33:41] david dot gero at ec dot gc dot ca Renaming to testflush.txt gives the following: Error: uploaded patch file must be text file (save as e.g. "patch.txt" or "package.diff") (detected "text/x-php") Could not attach patch "testflush.txt" to Bug #60146 Your upload system is scanning inside the file, probably using the "file" command, which indeed gives type "text/x-php", regardless of the extension. However why this is not accepted as text by your system is a mystery, and a bug in itself. I will email you the script, and hope you can figure out how to upload it. [2011-10-27 09:50:00] larue...@php.net and, I can't reproduce this in my environ with your test script pasted above. plz check your php error log, if there is some error. thanks [2011-10-27 09:44:36] larue...@php.net rename to testflush.txt, thanks [2011-10-26 22:56:53] david dot gero at ec dot gc dot ca Okay, your bug system has me stumped. Can't upload the test script, because I get the following: Error: uploaded patch file must be text file (save as e.g. "patch.txt" or "package.diff") (detected "text/x-php") Could not attach patch "testflush.php" to Bug #60146 Interesting bug that "text/x-php" is not considered text. The test script is only 20 lines, but some of them are long. Email me with a good return address and I will send the test script to you. Or maybe you could tell me how I'm supposed to upload it. 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 https://bugs.php.net/bug.php?id=60146 -- Edit this bug report at https://bugs.php.net/bug.php?id=60146&edit=1
Bug #60146 [Com]: Last 2 lines of page not being output
Edit report at https://bugs.php.net/bug.php?id=60146&edit=1 ID: 60146 Comment by: david dot gero at ec dot gc dot ca Reported by:david dot gero at ec dot gc dot ca Summary:Last 2 lines of page not being output Status: Feedback Type: Bug Package:Built-in web server Operating System: Windows XP PHP Version:5.4.0beta2 Block user comment: N Private report: N New Comment: Looks like I was wrong about the test script being truncated above. Just didn't scroll far enough to the right. So, if you can't reproduce, whereas it fails every time for me, I've uploaded my php.ini file. There are no errors in php_error.log I'm testing on Windows XP with Service Pack 3, running the following startup.cmd: @echo off title PHP start "PHP" /MAX php -S 127.0.0.1:8000 -t \repos\gerod\html exit testflush.php is in \repos\gerod\html\admin\testflush.php Using Internet Explorer 7 at http://localhost:8000/admin/testflush.php Page->View Source shows that the last two lines were never output Previous Comments: [2011-10-27 14:33:41] david dot gero at ec dot gc dot ca Renaming to testflush.txt gives the following: Error: uploaded patch file must be text file (save as e.g. "patch.txt" or "package.diff") (detected "text/x-php") Could not attach patch "testflush.txt" to Bug #60146 Your upload system is scanning inside the file, probably using the "file" command, which indeed gives type "text/x-php", regardless of the extension. However why this is not accepted as text by your system is a mystery, and a bug in itself. I will email you the script, and hope you can figure out how to upload it. [2011-10-27 09:50:00] larue...@php.net and, I can't reproduce this in my environ with your test script pasted above. plz check your php error log, if there is some error. thanks [2011-10-27 09:44:36] larue...@php.net rename to testflush.txt, thanks [2011-10-26 22:56:53] david dot gero at ec dot gc dot ca Okay, your bug system has me stumped. Can't upload the test script, because I get the following: Error: uploaded patch file must be text file (save as e.g. "patch.txt" or "package.diff") (detected "text/x-php") Could not attach patch "testflush.php" to Bug #60146 Interesting bug that "text/x-php" is not considered text. The test script is only 20 lines, but some of them are long. Email me with a good return address and I will send the test script to you. Or maybe you could tell me how I'm supposed to upload it. [2011-10-26 22:47:48] david dot gero at ec dot gc dot ca Test script had lines truncated. Will try to upload as a patch. 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 https://bugs.php.net/bug.php?id=60146 -- Edit this bug report at https://bugs.php.net/bug.php?id=60146&edit=1
Bug #60146 [Com]: Last 2 lines of page not being output
Edit report at https://bugs.php.net/bug.php?id=60146&edit=1 ID: 60146 Comment by: david dot gero at ec dot gc dot ca Reported by:david dot gero at ec dot gc dot ca Summary:Last 2 lines of page not being output Status: Feedback Type: Bug Package:Built-in web server Operating System: Windows XP PHP Version:5.4.0beta2 Block user comment: N Private report: N New Comment: Renaming to testflush.txt gives the following: Error: uploaded patch file must be text file (save as e.g. "patch.txt" or "package.diff") (detected "text/x-php") Could not attach patch "testflush.txt" to Bug #60146 Your upload system is scanning inside the file, probably using the "file" command, which indeed gives type "text/x-php", regardless of the extension. However why this is not accepted as text by your system is a mystery, and a bug in itself. I will email you the script, and hope you can figure out how to upload it. Previous Comments: [2011-10-27 09:50:00] larue...@php.net and, I can't reproduce this in my environ with your test script pasted above. plz check your php error log, if there is some error. thanks [2011-10-27 09:44:36] larue...@php.net rename to testflush.txt, thanks [2011-10-26 22:56:53] david dot gero at ec dot gc dot ca Okay, your bug system has me stumped. Can't upload the test script, because I get the following: Error: uploaded patch file must be text file (save as e.g. "patch.txt" or "package.diff") (detected "text/x-php") Could not attach patch "testflush.php" to Bug #60146 Interesting bug that "text/x-php" is not considered text. The test script is only 20 lines, but some of them are long. Email me with a good return address and I will send the test script to you. Or maybe you could tell me how I'm supposed to upload it. [2011-10-26 22:47:48] david dot gero at ec dot gc dot ca Test script had lines truncated. Will try to upload as a patch. [2011-10-26 22:43:59] david dot gero at ec dot gc dot ca Description: The test script should end with a second "Return to Menu" line. But the built-in web server does not output the last 2 lines of the page. If you remove the comment so that MAXROWS is 1 instead of 2, it works fine. Turning output buffering off in php.ini has no effect Test script: --- ' . PHP_EOL . '#BlahBlahBlahBlahBlahBlahBlahBlahBlahBlah blahBlah blah blah blah blah blahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah blah blahBlahBlahBlah blahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah blah blah blah blahBlahBlah blah blah blah blahBlahBlah blah blah blah blahBlah'; for ($i = 0; $i < MAXROWS; ++$i) $results .= PHP_EOL . '029704NULL9544NULLNULL15263292518Blah Blah Blah Blah Blah BlahNULL513525818766.726003673.373629Bla28-52-6556105390946-6207937101602265BlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zip00154-19-62 45:26:74NULL8386-95-23 46:29:476335599-96-95 73:86:61980.050.214.923'; $results .= PHP_EOL . ''; ?>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> Test PHP Exit Flush Return to Menu = 2 ?> Return to Menu Expected result: A second "Return to Menu" line should be displayed. Actual result: -- The following two lines are never output: Return to Menu -- Edit this bug report at https://bugs.php.net/bug.php?id=60146&edit=1
Bug #60146 [Com]: Last 2 lines of page not being output
Edit report at https://bugs.php.net/bug.php?id=60146&edit=1 ID: 60146 Comment by: david dot gero at ec dot gc dot ca Reported by:david dot gero at ec dot gc dot ca Summary:Last 2 lines of page not being output Status: Open Type: Bug Package:Built-in web server Operating System: Windows XP PHP Version:5.4.0beta2 Block user comment: N Private report: N New Comment: Okay, your bug system has me stumped. Can't upload the test script, because I get the following: Error: uploaded patch file must be text file (save as e.g. "patch.txt" or "package.diff") (detected "text/x-php") Could not attach patch "testflush.php" to Bug #60146 Interesting bug that "text/x-php" is not considered text. The test script is only 20 lines, but some of them are long. Email me with a good return address and I will send the test script to you. Or maybe you could tell me how I'm supposed to upload it. Previous Comments: [2011-10-26 22:47:48] david dot gero at ec dot gc dot ca Test script had lines truncated. Will try to upload as a patch. [2011-10-26 22:43:59] david dot gero at ec dot gc dot ca Description: The test script should end with a second "Return to Menu" line. But the built-in web server does not output the last 2 lines of the page. If you remove the comment so that MAXROWS is 1 instead of 2, it works fine. Turning output buffering off in php.ini has no effect Test script: --- ' . PHP_EOL . '#BlahBlahBlahBlahBlahBlahBlahBlahBlahBlah blahBlah blah blah blah blah blahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah blah blahBlahBlahBlah blahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlahBlah blah blah blah blahBlahBlah blah blah blah blahBlahBlah blah blah blah blahBlah'; for ($i = 0; $i < MAXROWS; ++$i) $results .= PHP_EOL . '029704NULL9544NULLNULL15263292518Blah Blah Blah Blah Blah BlahNULL513525818766.726003673.373629Bla28-52-6556105390946-6207937101602265BlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zipBlahBlahBlahBlahBlahBlahBlahBlah.zip00154-19-62 45:26:74NULL8386-95-23 46:29:476335599-96-95 73:86:61980.050.214.923'; $results .= PHP_EOL . ''; ?>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> Test PHP Exit Flush Return to Menu = 2 ?> Return to Menu Expected result: A second "Return to Menu" line should be displayed. Actual result: -- The following two lines are never output: Return to Menu -- Edit this bug report at https://bugs.php.net/bug.php?id=60146&edit=1