Bug #75074 [Com]: php-process crash when is_file() is used with strings longer 260 chars
| From: | daverandom@php.net | Date: | Mon, 14 Aug 2017 09:47:03 +0000 |
| Subject: | Bug #75074 [Com]: php-process crash when is_file() is used with strings longer 260 chars | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-210668@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75074&edit=1
ID: 75074
Comment by: daverandom@php.net
Reported by: trpro at gmx dot de
Summary: php-process crash when is_file() is used with
strings longer 260 chars
Status: Open
Type: Bug
Package: Filesystem function related
Operating System: Windows 7
PHP Version: 7.1.8
Block user comment: N
Private report: N
New Comment:
Have now tested with all 4 official release builds on both W7 x64 and W10 x64, cannot reproduce in
any configuration.
I don't have any x86 Windows installations handy to test against.
Previous Comments:
------------------------------------------------------------------------
[2017-08-14 09:41:27] daverandom@php.net
I cannot reproduce this on Win 10 x64, tried with php-7.1.8-nts-Win32-VC14-x64,
php-7.1.8-nts-Win32-VC14-x86, and php-7.1.8-Win32-VC14-x64.
Please can you double check that you have the x86 VC14 redistributables correctly installed on your
system?
Test script:
---------------
C:\Users\chris.wright>d:\temp\php-7.1.8-nts-Win32-VC14-x86\php.exe -c
d:\temp\php-7.1.8-nts-Win32-VC14-x86\php.ini-production -r "$data = str_pad('', 461,
'x'); var_dump(is_file($data));"
bool(false)
------------------------------------------------------------------------
[2017-08-14 09:13:33] trpro at gmx dot de
Description:
------------
When i check a string if it is a valid path, and the string is longer then 260 chars, the
php-process (cgi and cli) will crash.
I use a fresh downloaded php 7.1.8 (VC14 x86 Non Thread Safe (2017-Aug-02 00:22:56)), with the
default php.ini from the archive.
cmd: .\php.exe -c .\php.ini-production C:\phptest.php
Operatingsystem: Windows 7 Professional SP1 with all updates installed.
Test script:
---------------
<?php
$data = str_pad("", 261, "x");
is_file($data);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75074&edit=1