Bug #73962 [NEW]: bug with symlink related to cyrillic directory

From: Date: Fri, 20 Jan 2017 11:52:18 +0000
Subject: Bug #73962 [NEW]: bug with symlink related to cyrillic directory
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206755@lists.php.net to get a copy of this message
From: dolgov at bk dot ru Operating system: Windows 7 PHP version: 7.1.1 Package: Filesystem function related Bug Type: Bug Bug description:bug with symlink related to cyrillic directory 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 bug report at https://bugs.php.net/bug.php?id=73962&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73962&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73962&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73962&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73962&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73962&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73962&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73962&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73962&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73962&r=support Expected behavior: https://bugs.php.net/fix.php?id=73962&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73962&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73962&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73962&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73962&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73962&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73962&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73962&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73962&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73962&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73962&r=mysqlcfg

« previous php.bugs (#206755) next »