Bug #76327 [Com]: long path support not available for Windows Server 2008 r2 sp1-Apache restarted
| From: | spam2 at rhsoft dot net | Date: | Fri, 11 May 2018 12:35:13 +0000 |
| Subject: | Bug #76327 [Com]: long path support not available for Windows Server 2008 r2 sp1-Apache restarted | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215202@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76327&edit=1
ID: 76327
Comment by: spam2 at rhsoft dot net
Reported by: tumul dot kumar at veneratech dot com
Summary: long path support not available for Windows Server
2008 r2 sp1-Apache restarted
Status: Open
Type: Bug
Package: Apache related
Operating System: Windows Server 2008 R2 SP1
PHP Version: 7.1.17
Block user comment: N
Private report: N
New Comment:
when you say it works in never windows versions it's obvisouly a limitation of the underlying
OS and PHP hardly can do anything about it - why do you not upgrade the OS (which is already out of
support and has only extended support until 2020) or just don't use that long filenames?
Previous Comments:
------------------------------------------------------------------------
[2018-05-11 12:27:17] tumul dot kumar at veneratech dot com
Description:
------------
I'm using Apache 2.4.29 (Win 64), Php 7.1.12. I'm unable to use php functions such as
file_exists() for long file path (having length more than 259) Whereas it is feature of Php 7.1
which works fine with Windows 10.
Support must be in windows server 2008 r2 sp1 as it is not written anywhere that php 7.1 or Apache
2.4.29 (Win 64) don't support long file path feature for this window version.
Test script:
---------------
<?php
//You may give any long path having length of more than 259 characters
echo file_put_contents("C:\ProgramData\Pulsar\Jobs_Report\Pul0510_112_third -
Copddddddddddddddddddddddddddddyssssssssssssssslllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllxyz\abc.txt");
?>
Expected result:
----------------
If path is accessible it must return 1, otherwise 0
Actual result:
--------------
Apache is being restarted.
In apache error log, following Error message is being printed - ([Wed May 09 19:21:03.822918 2018]
[mpm_winnt:notice] [pid 3776:tid 328] AH00428: Parent: child process 5360 exited with status 255 --
Restarting)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76327&edit=1