Skip to content

Conversation

@kbond
Copy link
Member

@kbond kbond commented Nov 17, 2015

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #16577
License MIT
Doc PR n/a

@kbond kbond changed the title Fix bug in windows detection [Console] Fix bug in windows detection Nov 17, 2015
@javiereguiluz
Copy link
Member

👍

@xabbuh
Copy link
Member

xabbuh commented Nov 17, 2015

👍

Status: Reviewed

@ewgRa
Copy link
Contributor

ewgRa commented Nov 17, 2015

Just a curious.

What is a standard way to check OS in Symfony?

At some places it is check DIRECTORY_SEPARATOR, in another places it is strpos(PHP_OS, "WIN") === 0.

@xabbuh
Copy link
Member

xabbuh commented Nov 17, 2015

@ewgRa We always check the value of the DIRECTORY_SEPARATOR constant. There shouldn't be any other checks anymore (we unified that some time ago).

@fabpot
Copy link
Member

fabpot commented Nov 18, 2015

Thank you @kbond.

fabpot added a commit that referenced this pull request Nov 18, 2015
This PR was submitted for the 2.8 branch but it was merged into the 2.7 branch instead (closes #16578).

Discussion
----------

[Console] Fix bug in windows detection

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #16577
| License       | MIT
| Doc PR        | n/a

Commits
-------

c4068d9 Fix bug in windows detection
@fabpot fabpot closed this Nov 18, 2015
@fabpot fabpot mentioned this pull request Nov 23, 2015
This was referenced Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants