-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add PHPDbg support to HTTP components #26749
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
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.
Thanks for your PR.
I left a minor comment.
Did you check for all references to PHP_SAPI
?
@@ -372,7 +372,7 @@ public function send() | |||
|
|||
if (function_exists('fastcgi_finish_request')) { | |||
fastcgi_finish_request(); | |||
} elseif ('cli' !== PHP_SAPI) { | |||
} elseif (!in_array(PHP_SAPI, array('cli', 'phpdbg'))) { |
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.
Could you update your code with } elseif (!\in_array(PHP_SAPI, array('cli', 'phpdbg'), true)) {
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.
Done.
@lyrixx Thanks for the quick review! I did check every usage of |
I've just unified the code style in all checks. |
Important consideration is these would need to be re-checked in 2.8, 3.4, 4.0 etc. |
Thank you @hkdobrev. |
This PR was squashed before being merged into the 2.7 branch (closes #26749). Discussion ---------- Add PHPDbg support to HTTP components | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | This is a follow-up to #26677. Turns out there aren't that many remaining instances of `PHP_SAPI` checks without considering `phpdbg` where it's needed. Commits ------- 60dd79c Add PHPDbg support to HTTP components
This is a follow-up to #26677.
Turns out there aren't that many remaining instances of
PHP_SAPI
checks without consideringphpdbg
where it's needed.