In the Decoder->__construct method the code will execute the code
$len = (int) $seq->readUntil(':');
the method will return null, and $len has the value 0 in the end.
After that this check happens:
if (null === $len) {
throw new RuntimeException('Data delimiter not found!');
}
but $len is 0 so the exception will not be thrown and the code runs and runs and runs...
My assumption is that the int-cast is wrong and should be removed here, but not sure:
I noticed that my code is running in an endless loop after calling this function:
and this is the stack trace:
In the Decoder->__construct method the code will execute the code
the method will return null, and
$len
has the value 0 in the end. After that this check happens:but
$len
is 0 so the exception will not be thrown and the code runs and runs and runs... My assumption is that the int-cast is wrong and should be removed here, but not sure: