1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Revert fix for GH-14930: truncating readdir output (#15533)

This commit is contained in:
Jakub Zelenka
2024-08-22 23:41:34 +01:00
committed by GitHub
parent d5b5e61d80
commit 70c5e366f6
3 changed files with 8 additions and 0 deletions

2
NEWS
View File

@@ -81,6 +81,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;