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 #1591

Merged
merged 1 commit into from
Nov 25, 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.3.0 x86
  • Ubuntu 13.10, PHP 5.5.3 x86, Phalcon 1.3.0 x86

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

phalcon commented Nov 25, 2013

Thanks, could you please submit this fix to 1.2.5?

@pgasiorowski pgasiorowski deleted the 1.3.0-loader-paths branch November 25, 2013 23:17
@pgasiorowski
Copy link
Contributor Author

PR 1601 is now up for merging with 1.2.5

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.

2 participants