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

Fix/issue 1426 windows config path matching #1487

Merged

Conversation

BeMySlaveDarlin
Copy link
Contributor

@BeMySlaveDarlin BeMySlaveDarlin commented Mar 14, 2021

Hello!

  • Type: bug fix
  • Link to issue: #1426

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the Contributing Guidelines
  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR

Small description of change:
Regex matching is overhead in just searching filename in path string. Which causes platform dependent issues.
Replaced preg_match in config file comparison by strpos.

Thanks

@codecov
Copy link

codecov bot commented Mar 14, 2021

Codecov Report

Merging #1487 (b8ddd9c) into 4.0.x (e65d38c) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@          Coverage Diff          @@
##           4.0.x   #1487   +/-   ##
=====================================
  Coverage   3.16%   3.17%           
=====================================
  Files        111     111           
  Lines       5112    5110    -2     
=====================================
  Hits         162     162           
+ Misses      4950    4948    -2     

@BeMySlaveDarlin BeMySlaveDarlin force-pushed the fix/ISSUE-1426-windows-path-matching branch from c4d1858 to b8ddd9c Compare March 14, 2021 16:49
@Jeckerson Jeckerson linked an issue Mar 14, 2021 that may be closed by this pull request
@Jeckerson Jeckerson merged commit 3763d79 into phalcon:4.0.x Mar 14, 2021
@Jeckerson Jeckerson added this to the 4.0.x milestone Mar 14, 2021
@BeMySlaveDarlin BeMySlaveDarlin deleted the fix/ISSUE-1426-windows-path-matching branch May 4, 2021 11:13
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.

#1376 broke finding correct config.php file in windows
2 participants