phalcon/cphalcon — pull request #1591 by WooDzu (2013-11-24 17:25:29+00:00)
Title: [PR] LoaderTest::testsEvents() fails on windows

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 screen for result

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