cebe / php-openapi

Read and write OpenAPI yaml/json files and make the content accessible in PHP objects.
MIT License
466 stars 88 forks source link

NormalizeUri does not normalizes windows file urls #22

Closed scaytrase closed 5 years ago

scaytrase commented 5 years ago

I was running tests locally on windows for library and got an exception instead of green test

image

Looks like code ignores windows path notation while all other code work OK with it (since file still could be read)

cebe commented 5 years ago

Thanks for reporting, I have no windows environment to test on, so I was not aware of this.

Seems travis has an option to run tests on windows, will try that. https://docs.travis-ci.com/user/reference/windows/

lezhnev74 commented 5 years ago

This tutorial helped me to reproduce the bug in the VirtualBox:

https://www.jeffgeerling.com/blog/2018/installing-php-7-and-composer-on-windows-10