Bug #73830 [Ver]: Directory does not exist.

From: Date: Thu, 12 Jan 2017 16:30:16 +0000
Subject: Bug #73830 [Ver]: Directory does not exist.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206564@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73830&edit=1 ID: 73830 Updated by: ab@php.net Reported by: noreply at example dot com Summary: Directory does not exist. Status: Verified Type: Bug Package: Built-in web server Operating System: Windows PHP Version: 7.1.0 Assigned To: ab Block user comment: N Private report: N New Comment: ~dp0 delivers the current directory with a backslash at the end. Say it's e:\dir0\dir1\. As a result, "~dp0" would be "e:\dir0\dir1\". The \" at the end arrives in PHP literaly as "e:\dir0\dir1\"". Huh. Further, this path is passed through stat(). Now comes the weird - with vc11 stat seems to process that despite the path is broken, vc14 doesn't like it. Digging further so far, maybe it still should be fixed even if CRT changed. Thanks. Previous Comments: ------------------------------------------------------------------------ [2017-01-11 05:48:25] krakjoe@php.net Note that properly quoted path with spaces is working fine, not sure what has changed with regard to magical ~dp0 cmd magic, if anything. ------------------------------------------------------------------------ [2017-01-11 05:44:27] krakjoe@php.net Anatol, I had someone quickly verify this is an actual bug. Can you take a look when you have a moment please ? ------------------------------------------------------------------------ [2016-12-29 01:17:10] noreply at example dot com Description: ------------ mkdir "1 2" cd "1 2" bug-server.bat Directory C:\...\1 2" does not exist. Test script: --------------- "C:\php\php-7_1\php.exe" -S 127.0.1.1:80 -t "%~dp0" "C:\php\php-7_0\php.exe" -S 127.0.1.1:80 -t "%~dp0" "C:\php\php-5_6\php.exe" -S 127.0.1.1:80 -t "%~dp0" Expected result: ---------------- PHP 7.xx Development Server started at Listening on http://127.0.1.1:80 Actual result: -------------- [PHP 7and 7.1] Directory C:\...\1 2" does not exist. [PHP 5.6] PHP 5.6.29 Development Server started at Listening on http://127.0.1.1:80 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73830&edit=1

« previous php.bugs (#206564) next »