You've already forked ugly-queue
fix: Don't break on whitespace. Helpful for JSON 🐛
This commit is contained in:
@@ -269,7 +269,7 @@ class UglyQueue implements \Serializable, \SplSubject, \Countable
|
|||||||
$data = array();
|
$data = array();
|
||||||
$start_line = $lineCount - $count;
|
$start_line = $lineCount - $count;
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while (($line = fscanf($queueFileHandle, "%s\t%s\n")) !== false && $i < $lineCount)
|
while (($line = fscanf($queueFileHandle, "%s\t%[^\n]")) !== false && $i < $lineCount)
|
||||||
{
|
{
|
||||||
if ($i++ >= $start_line)
|
if ($i++ >= $start_line)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user