Revert fix for GH-14930: truncating readdir output

This commit is contained in:
Jakub Zelenka 2024-08-21 23:11:03 +01:00
parent 56703e5390
commit e8dff92e88
No known key found for this signature in database
GPG Key ID: 1C0779DC5C0A9DE4
3 changed files with 8 additions and 0 deletions

2
NEWS
View File

@ -65,6 +65,8 @@ PHP NEWS
. Fixed bug GH-15028 (Memory leak in ext/phar/stream.c). (nielsdos)
. Fixed bug GH-15034 (Integer overflow on stream_notification_callback
byte_max parameter with files bigger than 2GB). (nielsdos)
. Reverted fix for GH-14930 (Custom stream wrapper dir_readdir output
truncated to 255 characters). (Jakub Zelenka)
- Tidy:
. Fix memory leaks in ext/tidy basedir restriction code. (nielsdos)

View File

@ -1,5 +1,7 @@
--TEST--
GH-14930: Custom stream wrapper dir_readdir output truncated to 255 characters in PHP 8.3
--XFAIL--
Fix is an ABI break so reverted from 8.3
--FILE--
<?php

View File

@ -107,7 +107,11 @@ typedef struct _php_stream_statbuf {
} php_stream_statbuf;
typedef struct _php_stream_dirent {
#ifdef NAME_MAX
char d_name[NAME_MAX + 1];
#else
char d_name[MAXPATHLEN];
#endif
unsigned char d_type;
} php_stream_dirent;