Req #48421 [Fbk->Opn]: stream_get_line() - allow $length to be optional

From: Date: Thu, 08 Apr 2021 11:15:29 +0000
Subject: Req #48421 [Fbk->Opn]: stream_get_line() - allow $length to be optional
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233310@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=48421&edit=1 ID: 48421 Updated by: cmb@php.net Reported by: ryan dot brothers at gmail dot com Summary: stream_get_line() - allow $length to be optional -Status: Feedback +Status: Open Type: Feature/Change Request Package: Streams related Operating System: Irrelevant PHP Version: Any -Assigned To: cmb +Assigned To: Block user comment: N Private report: N New Comment: But still you like that parameter to be optional. Okay, that is not unreasonable. Previous Comments: ------------------------------------------------------------------------ [2021-04-04 12:23:39] ryan dot brothers at gmail dot com Yes, using PHP_INT_MAX is how I've worked around it for now. ------------------------------------------------------------------------ [2021-04-01 15:34:28] cmb@php.net I've updated the docs accordingly[1]. Anyhow, wouldn't passing PHP_INT_MAX as $length solve that problem for all practical purposes? [1] <https://github.com/php/doc-en/commit/9a37893b543ee7d558ac8cbebbc6d1f0caf719f2> ------------------------------------------------------------------------ [2020-01-10 13:30:35] n at n0099 dot net Please mention this 8192 default length in document, and also i hope there could be a -1 value for unlimited length. ------------------------------------------------------------------------ [2015-01-03 13:05:45] ryan dot brothers at gmail dot com Yes, I am still interested in this. It wouldn't let me re-open the bug. ------------------------------------------------------------------------ [2014-12-30 10:41:33] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ 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=48421 -- Edit this bug report at https://bugs.php.net/bug.php?id=48421&edit=1

« previous php.bugs (#233310) next »