Skip to content
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

[PR] LoaderTest::testsEvents() fails on windows #1601

Merged
merged 1 commit into from
Nov 26, 2013

Conversation

pgasiorowski
Copy link
Contributor

This PR addresses an issue in Phalcon\Loader.

Affected function is Phalcon\Loader::getCheckedPath() which returns invalid path on windows in some cases.
To reproduce this issue just run LoaderTest::testsEvents() on windows. See attached screenshot for result

loadertest-testevents

The problem is in function phalcon_fix_path() where a conditional statement incorrectly assumes that
if a trailing path separator from users was specified it'll always be the same as system path separator.


This PR was tested on

  • Windows 7 x64, PHP 5.5.3 x86, Phalcon 1.2.5 x86

phalcon pushed a commit that referenced this pull request Nov 26, 2013
[PR] LoaderTest::testsEvents() fails on windows
@phalcon phalcon merged commit ab3fac1 into phalcon:1.2.5 Nov 26, 2013
@phalcon
Copy link
Collaborator

phalcon commented Nov 26, 2013

Thanks

@pgasiorowski pgasiorowski deleted the 1.2.5-local branch November 28, 2013 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants