Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:2.7fromhkdobrev:phpdbg-support
Apr 3, 2018
Merged

Add PHPDbg support to HTTP components#26749

fabpot merged 1 commit intosymfony:2.7fromhkdobrev:phpdbg-support
Apr 3, 2018

Conversation

@hkdobrev
Copy link
Contributor

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

This is a follow-up to#26677.

Turns out there aren't that many remaining instances ofPHP_SAPI checks without consideringphpdbg where it's needed.

@hkdobrevhkdobrev changed the titleAdd PHPDbg support to HTTP compoenentsAdd PHPDbg support to HTTP componentsApr 2, 2018
Copy link
Member

@lyrixxlyrixx left a 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 toPHP_SAPI ?

if (function_exists('fastcgi_finish_request')) {
fastcgi_finish_request();
}elseif ('cli' !==PHP_SAPI) {
}elseif (!in_array(PHP_SAPI,array('cli','phpdbg'))) {
Copy link
Member

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)) {

hkdobrev reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Done.

@hkdobrev
Copy link
ContributorAuthor

@lyrixx Thanks for the quick review! I did check every usage ofPHP_SAPI and while there are a few others they already have either special support forphpdbg, similar check to that or are just aboutcli-server SAPI wherephpdbg check is not applicable.

@hkdobrev
Copy link
ContributorAuthor

I've just unified the code style in all checks.

@hkdobrev
Copy link
ContributorAuthor

Important consideration is these would need to be re-checked in 2.8, 3.4, 4.0 etc.

@fabpot
Copy link
Member

Thank you@hkdobrev.

@fabpotfabpot merged commit60dd79c intosymfony:2.7Apr 3, 2018
fabpot added a commit that referenced this pull requestApr 3, 2018
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 was referencedApr 3, 2018
@hkdobrevhkdobrev deleted the phpdbg-support branchApril 17, 2020 16:37
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@lyrixxlyrixxlyrixx approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@hkdobrev@fabpot@lyrixx@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp