smarty-php / smarty-php/smarty
`Smarty::_realpath` method normalizes `://host/path` to `:\\host\path` on Windows
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 2.3k
- Forks
- 709
- PR merge metrics
- No merged PRs in 30d
Description
For local paths, I propose to normalize \ to / on every platform and drop DIRECTORY_SEPARATOR completely as / separator is fine to be used on Windows as well. This is also how Symfony normalizes local paths.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the Smarty::_realpath method and inspect how it normalizes local paths on Windows, including the handling of ://host/path. Compare the current behavior with the proposed slash normalization, then verify that local paths use / consistently and that the host path is not converted incorrectly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100