Skip to content

Commit

Permalink
Merge pull request #1601 from WooDzu/1.2.5-local
Browse files Browse the repository at this point in the history
[PR] LoaderTest::testsEvents() fails on windows
  • Loading branch information
Phalcon committed Nov 26, 2013
2 parents b05126e + fa03e06 commit ab3fac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/32bits/phalcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -9770,7 +9770,7 @@ static void phalcon_fix_path(zval **return_value, zval *path, zval *directory_se
}

if (Z_STRLEN_P(path) > 0 && Z_STRLEN_P(directory_separator) > 0) {
if (Z_STRVAL_P(path)[Z_STRLEN_P(path) - 1] != Z_STRVAL_P(directory_separator)[0]) {
if (Z_STRVAL_P(path)[Z_STRLEN_P(path) - 1] != '\\' && Z_STRVAL_P(path)[Z_STRLEN_P(path) - 1] != '/') {
PHALCON_CONCAT_VV(*return_value, path, directory_separator);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion ext/kernel/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void phalcon_fix_path(zval **return_value, zval *path, zval *directory_separator
}

if (Z_STRLEN_P(path) > 0 && Z_STRLEN_P(directory_separator) > 0) {
if (Z_STRVAL_P(path)[Z_STRLEN_P(path) - 1] != Z_STRVAL_P(directory_separator)[0]) {
if (Z_STRVAL_P(path)[Z_STRLEN_P(path) - 1] != '\\' && Z_STRVAL_P(path)[Z_STRLEN_P(path) - 1] != '/') {
PHALCON_CONCAT_VV(*return_value, path, directory_separator);
return;
}
Expand Down

0 comments on commit ab3fac1

Please sign in to comment.