From 34d848c7030be4101fc225540b32377453891c05 Mon Sep 17 00:00:00 2001 From: Guilherme Nascimento Date: Tue, 8 Sep 2026 09:20:43 -0300 Subject: [PATCH 1/2] Fixes Example #2 using fileperms Same as: https://github.com/php/doc-en/pull/5842 Incorrect: ```php case 0x8000: // regular $info = 'r'; ``` --- reference/filesystem/functions/fileperms.xml | 50 +++++++------------- 1 file changed, 17 insertions(+), 33 deletions(-) diff --git a/reference/filesystem/functions/fileperms.xml b/reference/filesystem/functions/fileperms.xml index 030bbf37f..7fd42ec02 100644 --- a/reference/filesystem/functions/fileperms.xml +++ b/reference/filesystem/functions/fileperms.xml @@ -43,52 +43,36 @@ echo substr(sprintf('%o', fileperms('/etc/passwd')), -4); From 46f57d750fa21ff93508e3b511000221a4ac4edf Mon Sep 17 00:00:00 2001 From: Guilherme Nascimento Date: Tue, 8 Sep 2026 10:50:55 -0300 Subject: [PATCH 2/2] EN-Revision --- reference/filesystem/functions/fileperms.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/filesystem/functions/fileperms.xml b/reference/filesystem/functions/fileperms.xml index 7fd42ec02..7edc6c846 100644 --- a/reference/filesystem/functions/fileperms.xml +++ b/reference/filesystem/functions/fileperms.xml @@ -1,7 +1,7 @@ - - - - + + + + fileperms