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)