-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix FPM status json encoded value test #11276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
95e64ca
to
5178b84
Compare
@iluuu1994 That should fix the failure that you reported. @andypost Not sure however if this is going to fix the issue that you reported so if you could give it a try that would be appreciated. |
5178b84
to
e3d11fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM otherwise
); | ||
} | ||
foreach ($data['processes'] as $process) { | ||
if (preg_match('/' . $pattern . '/', $process[$fieldName]) !== false) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend using ()
as the delimiter so that the caller doesn't need to escape /
or any other literal character.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it for compatibility with Windows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah will use pipes in case it was used for matching the whole uri...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm actually using pipes elsewhere - not sure why I used slashes here...
Confirm the last change fixed the test |
This should fix the failure when incorrect process is selected. As it is a static pool, it can be in any process so we cannot expect that process 0 is the query one.