Bug #73962 [Opn->Csd]: bug with symlink related to cyrillic directory
| From: | ab@php.net | Date: | Fri, 20 Jan 2017 22:48:18 +0000 |
| Subject: | Bug #73962 [Opn->Csd]: bug with symlink related to cyrillic directory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206807@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73962&edit=1
ID: 73962
Updated by: ab@php.net
Reported by: dolgov at bk dot ru
Summary: bug with symlink related to cyrillic directory
-Status: Open
+Status: Closed
Type: Bug
Package: Filesystem function related
Operating System: Windows 7
PHP Version: 7.1.1
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=95406c878a9cc25ad1e831e619afba683e92f05a
Log: Fixed bug #73962 bug with symlink related to cyrillic directory
Previous Comments:
------------------------------------------------------------------------
[2017-01-20 11:52:11] dolgov at bk dot ru
Description:
------------
Can't check file by symlink, but do it by realpath
run.bat
SET "URL=http://windows.php.net/downloads/releases/php-7.1.1-Win32-VC14-x64.zip"
SET "FILENAME=%~dp0\php7.1.1.zip"
bitsadmin.exe /transfer "php7.1.1" "%URL%" "%FILENAME%"
SET "URL=http://windows.php.net/downloads/releases/php-7.0.15-Win32-VC14-x64.zip"
SET "FILENAME=%~dp0\php7.0.15.zip"
bitsadmin.exe /transfer "php7.0.15" "%URL%" "%FILENAME%"
for /F "delims=" %%I IN (' dir /b /s /a-d *.zip ') DO (
"C:\Program Files\7-Zip\7z.exe" x -y -o"%%~dpI\%%~nI" "%%I"
)
MKDIR "%~dp0ÐÐ¾Ð²Ð°Ñ Ð¿Ð°Ð¿ÐºÐ°"
MKDIR "%~dp0ÐÐ¾Ð²Ð°Ñ Ð¿Ð°Ð¿ÐºÐ°\ÐоваÑ
папка"
MKDIR "%~dp0ÐÐ¾Ð²Ð°Ñ Ð¿Ð°Ð¿ÐºÐ°\ÐоваÑ
папка\sql"
echo File is readable! >"%~dp0ÐÐ¾Ð²Ð°Ñ Ð¿Ð°Ð¿ÐºÐ°\ÐоваÑ
папка\sql\test.txt"
MKLINK /D d "%~dp0ÐÐ¾Ð²Ð°Ñ Ð¿Ð°Ð¿ÐºÐ°\ÐоваÑ
папка\sql"
@echo off
php7.0.15\php.exe -c="php7.0.15\php.ini-development" run.php
php7.1.1\php.exe -c="php7.1.1\php.ini-development" run.php
Test script:
---------------
// run.php
<?php
$dir = 'ÐÐ¾Ð²Ð°Ñ Ð¿Ð°Ð¿ÐºÐ°\ÐоваÑ
папка\sql';
function isReadable($path) {
return (is_readable($path) ? ' +': ' -');
}
function check ($path) {
$path .= '\test.txt';
return isReadable($path) . isReadable(__DIR__.DIRECTORY_SEPARATOR.$path);
}
print 'PHP '.PHP_VERSION."\t" . check($dir) . check('d') . PHP_EOL;
Expected result:
----------------
PHP 7.0.15 + + + +
PHP 7.1.1 + + + +
Actual result:
--------------
PHP 7.0.15 + + + +
PHP 7.1.1 + + - -
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73962&edit=1