ID: 33163 Updated by: [EMAIL PROTECTED] Reported By: isak at hypergene dot com -Status: Open +Status: Feedback Bug Type: Feature/Change Request PHP Version: 5.0.4 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2005-05-27 15:34:01] isak at hypergene dot com Description: ------------ It is impossible to use this function to read exactly one line of arbitrary length, even if you call it multiple times and concatenates the results to a buffer. When the return value is equal to the length argument, you can't know what this means. It can be either one of these cases: 1. You have read one full line, which is exactly as long as the given length. 2. You have read part of one line, which is longer than the given length. In case 1. you will go on and use the line, in case 2. you would want to make another call and concatenate its result to your line buffer. IMHO, the length argument really should be optional. It is obviously possible to include the function stream_get_contents() in the PHP library, therefore I can see no reason why the library should not be able to read strings of arbitrary length. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33163&edit=1
