Skip to content

Commit fe1fe9b

Browse files
committed
Case insensitive port compare
1 parent acd6aaa commit fe1fe9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PHPFUI/MySQLSlowQuery/Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private function parse() : void
139139

140140
while (\strlen($line = $this->getNextLine()))
141141
{
142-
if (0 === \strpos($line, self::PORT))// in middle of session, end it
142+
if (0 === \stripos($line, self::PORT))// in middle of session, end it
143143
{
144144
$currentSession[] = $line;
145145
// eat the next line
@@ -165,7 +165,7 @@ private function parse() : void
165165

166166
while (\strlen($line = $this->getNextLine()) && '#' !== $line[0])
167167
{
168-
if (0 === \strpos($line, self::PORT))// found a session
168+
if (0 === \stripos($line, self::PORT))// found a session
169169
{
170170
$this->pushLine($line);
171171
// push this and previous line back on to stack

0 commit comments

Comments
 (0)