ID: 22057 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Bogus +Status: Feedback Bug Type: Filesystem function related PHP Version: 4.3.0 New Comment:
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. "response: "fbc" or something similar." ^^^^^^^^^^^^^^^^^^^^ How about a real error report? If you can't be bothered to spend the time to give us precise details, why should we sit here guessing what your problem is? Are you sure that your web server isn't sending back data using the chunked transfer encoding? (read the specs for HTTP 1.1!). If your code doesn't handle chunked encoding, use HTTP 1.0 instead. If you are *absolutely* 100% sure that your script isn't broken as far as HTTP is concerned, how about giving us more details on the remote server? Is it something we can access so that we can see the same problem? Don't start complaining to us about how nicely you have been treated; so far you have wasted 2 peoples time with insufficient data. Please don't waste mine as well. Previous Comments: ------------------------------------------------------------------------ [2003-02-05 01:25:00] [EMAIL PROTECTED] I am well aware of what manual states and how the function works. You are saying you get same results from both versions. Which configuration of server settings you use? Did you try all, so you can be so sure? I use Apache 1.3.27 on Windows and upgraded from PHP 4.2.3 to 4.3.0 recently by keeping all settings same and this problem occurred. How would you explain same function code returns two different responses in different versions? Server: Apache/1.3.27 (Win32) PHP/4.3.0 PHP 4.3.0 response: "fbc" or something similar. PHP 4.2.3 response: "HTTP/1.1 200 OK" And also this doesn't happen for all websites I tried. It seems the function is having some serious problem with certain server configurations. This wasn't the case for 4.2.3. I hope you are not approaching all bug reports as you did to mine. Maybe I should have mentioned my server but still you are approaching with a prejudice of dealing with a dummy user rather than trying to make sure the function works with all platform and distribution versions. You could have asked more details rather than putting it into a "dummy user wandering in bug pages" case from the first reply. ------------------------------------------------------------------------ [2003-02-04 16:17:54] [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. The manual clearly states that no more then 1 line will be read by fgets() function. This is not something new, the old code worked in the exact same manner. In my tests the outputs of PHP 4.2.3 & 4.3.0 are identical: PHP 4.2.3 string(17) "HTTP/1.1 200 OK " PHP 4.3.0 string(17) "HTTP/1.1 200 OK " ------------------------------------------------------------------------ [2003-02-04 16:13:43] [EMAIL PROTECTED] What error? And please give us a complete (but short!) example script.. ------------------------------------------------------------------------ [2003-02-04 15:59:22] [EMAIL PROTECTED] PHP manual doesn't tell why this function start to give an error in version 4.3 while working fine with 4.2.x. I also tried less efficient ways of getting http headers just for test purposes and such 3-character long string never appears. That inefficient method returns same string fgets in 4.2.3 used to return. PHP manual says the function was modified regarding a fix about binaries. does that affect the result? As I say it is not about HTTP or server settings. Same code is not working with 4.3 although it worked fine with 4.2.3. Sorry but your answer doesn't help to explain why this error happened after upgrading to 4.3 while keeping all server and configuration settings same. ------------------------------------------------------------------------ [2003-02-04 15:39:24] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php fgets() will only return a single line of data or the requested number of bytes, which ever one is smallest will be returned. In case of HTTP, the 1st line that will be sent to you by the webserver will be the response code, which in many cases is just a number 3 bytes long. ------------------------------------------------------------------------ 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/22057 -- Edit this bug report at http://bugs.php.net/?id=22057&edit=1