You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
readTillPrompt can sometimes return incomplete lines.
Given the input is ........\nsmb: \path\to\subfolder\>[space] and the first part of the input fills the buffer, so the $chunk variable will hold ........\nsmb: \path\to
Thenstrpos($chunk, "smb:") === false will cause the remaining \subfolder\>[space] to be left in the stream() and the next call to readTillPrompt return \subfolder\>[space]
But I would expect the function to have read until \>[space] the first call.
readTillPrompt
can sometimes return incomplete lines.Given the input is
........\nsmb: \path\to\subfolder\>[space]
and the first part of the input fills the buffer, so the$chunk
variable will hold........\nsmb: \path\to
Then
strpos($chunk, "smb:") === false
will cause the remaining\subfolder\>[space]
to be left in the stream() and the next call toreadTillPrompt
return\subfolder\>[space]
But I would expect the function to have read until
\>[space]
the first call.SMB/src/Wrapped/RawConnection.php
Lines 119 to 129 in 76995aa
The text was updated successfully, but these errors were encountered: