- Core:
. Fixed bug #79884 (PHP_CONFIG_FILE_PATH is meaningless). (cmb)
. Fixed bug #77932 (File extensions are case-sensitive). (cmb)
+ . Fixed bug #79806 (realpath() erroneously resolves link to link). (cmb)
?? ??? ????, PHP 7.3.21
}
#ifdef ZEND_WIN32
+retry_reparse_point:
if (save) {
pathw = php_win32_ioutil_any_to_w(path);
if (!pathw) {
tmp = do_alloca(len+1, use_heap);
memcpy(tmp, path, len+1);
-retry:
+retry_reparse_tag_cloud:
if(save &&
!(IS_UNC_PATH(path, len) && len >= 3 && path[2] != '?') &&
(dataw.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)
dataw.dwFileAttributes = fileInformation.dwFileAttributes;
CloseHandle(hLink);
(*ll)--;
- goto retry;
+ goto retry_reparse_tag_cloud;
}
free_alloca(tmp, use_heap);
CloseHandle(hLink);
free_alloca(pbuffer, use_heap_large);
free(substitutename);
+ {
+ DWORD attrs = GetFileAttributesA(path);
+ if (!isVolume && (attrs & FILE_ATTRIBUTE_REPARSE_POINT)) {
+ free_alloca(tmp, use_heap);
+ FREE_PATHW()
+ goto retry_reparse_point;
+ }
+ }
+
if(isabsolute == 1) {
if (!((j == 3) && (path[1] == ':') && (path[2] == '\\'))) {
/* use_realpath is 0 in the call below coz path is absolute*/
--TEST--
Test realpath() with relative paths
---SKIPIF--
-<?php
-if (substr(PHP_OS, 0, 3) == 'WIN') {
- die('skip no symlinks on Windows');
-}
-?>
--FILE--
<?php
$file_path = dirname(__FILE__);