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

From: Date: Thu, 01 Apr 2021 15:34:28 +0000
Subject: Req #48421 [Opn->Fbk]: stream_get_line() - allow $length to be optional
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233123@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:             Open
+Status:             Feedback
 Type:               Feature/Change Request
 Package:            Streams related
 Operating System:   Irrelevant
 PHP Version:        Any
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

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>


Previous Comments:
------------------------------------------------------------------------
[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.

------------------------------------------------------------------------
[2014-05-05 02:03:45] ryan dot brothers at gmail dot com

Yes, this would still be useful to me.  I've had to work around it in the meantime.  Thanks for
your help.

------------------------------------------------------------------------
[2014-04-30 22:48:57] levim@php.net

Is this something you are still interested in seeing?

------------------------------------------------------------------------


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


Thread (13 messages)

« previous php.bugs (#233123) next »