|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-08-14 09:13 UTC] 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);
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 11:00:02 2025 UTC |
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)