-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
[PHP] Replace File.seperator with slashes in PHP projects #2004 #2007
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
[PHP] Replace File.seperator with slashes in PHP projects #2004 #2007
Conversation
ybelenko
left a comment
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.
Great!
You fixed annoying bug, when output on Windows always differ with double forward slashes.
Now I can work on Windows and my generated output will always match CI results.
Checked locally with PHP Slim Server generator.
Thanks a lot!
|
@jfastnacht Line 57 in 9fe3c76
Should I change all |
Probably, but we should be careful due to possible side effects. I can check on Sunday or Monday, unless you want to change it yourself. |
|
@ybelenko I couldn't find a problematic part in |
|
@jfastnacht I've checked your PR again, Now I do understand why we can't change But... why Lines 632 to 646 in 8a8a184
|
Yeah, that's what I'm trying to seperate.
Other languages might be making it differently, so I can only talk for PHP right now. |
|
Lines 632 to 646 in 8a8a184
@wing328 Is this correct implemetation? Seems to me that |
|
@jfastnacht Totally agree with you. I won't merge this PR until @ackintosh approved it anyway. His opinion is more relevant because PHP Client codegen is used by larger community. |
|
@jfastnacht thanks for the PR. @ybelenko thanks for reviewing the change. If no further feedback on this PR, I'll merge it tomorrow (Tue) cc @ackintosh |
|
Thanks for the great job! ✨ |
…s#2004 (OpenAPITools#2007) * [FIX] Replace File.seperator with slashes in PHP projects. * Replaced 'File.separator' with slashes in AbstractPhpCodegen.
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\.master,. Default:3.4.x,4.0.xmaster.Description of the PR
#2004
@jebentier @dkarlovi @mandrean @jfastnacht @ackintosh @ybelenko @renepardon