On 05.08.2015 at 17:30, Nicolas Grekas wrote:

>> For windows, there is no path normalization either btw. It would makes
>> realpath more expensive.
> 
> I don't know what you mean by "no path normalization", but as far as the
> case is concerned, there IS normalization:
> var_dump(realpath(strtolower(__FILE__)));
> var_dump(realpath(strtoupper(__FILE__)));
> 
> displays two times exactly the same string on Windows

FWIW, this case normalization happens in tsrm_realpath_r() by virtue of
FindFirstFile()[1] and later using the reported filename[2].

[1]
<https://github.com/php/php-src/blob/php-7.0.0beta2/Zend/zend_virtual_cwd.c#L872>
[2]
<https://github.com/php/php-src/blob/php-7.0.0beta2/Zend/zend_virtual_cwd.c#L1143>

-- 
Christoph M. Becker

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to