The attached patch implements spl_unixify_path_separators(). If it's
I'm afraid that automatically applying slash conversions to all results
returned by SPL file functions - if that's what this patch does - may be
unwanted. This way SPL functions and regular file functions would return
different file names, which can be harmful if these names are used as
keys, compared, etc.
Paths. Mm, possibly.
On the other hand, the only code likely to be broken would be
platform-specific code written for Windows boxes - how much of that is
likely to be out there? Another point is that, although Windows *writes*
'\', these days it's capable of recognising either separator. So it really
would just be down to path comparisons.
I'm actually wondering how much harm it would do to make DEFAULT_SLASH
generic...
- Steph
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php