[php-src] Issue #10992: mkdir() long paths problem

From: Date: Sat, 01 Apr 2023 16:56:52 +0000
Subject: [php-src] Issue #10992: mkdir() long paths problem
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-244076@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10992
Author: lunter2

### Description

The following code:

```php
<?php
// Windows Registry Editor Version 5.00
// [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
// "LongPathsEnabled"=dword:00000001
//
// restart Windows 10

 mkdir(str_repeat('a',255));
 file_put_contents(str_repeat('b',255),'');
?>
```

Resulted in this output:
```
folder aaa...aaa exists
file bbb...bbb exists
```

But I expected this output instead:
```
folder aaa...aaa do not exist
file bbb...bbb exists
```


### PHP Version

PHP 8.2.4

### Operating System

Windows 10 Pro 22H2 (10.0.19045.2788)


Thread (1 message)

  • lunter2
« previous php.bugs (#244076) next »