|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-21 15:41 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 05:00:01 2025 UTC |
Description: ------------ The test "Test fileperms(), chmod() functions: error conditions" [ext/standard/tests/file/006_error.phpt] fails, although the tested functionality is fine. Reproduce code: --------------- There is >> printf("%o", fileperms("/etc/passwd") );' in the --FILE-- section and >> 100644 as the expected output in the --EXPECTF-- section. I found that on the Solaris server where I compiled PHP, /etc/passwd has permissions set to 100444 instead of 100644 which the test awaits. It is a bit weird, but the test result should not depend on this, so something like 'fileperms() & 077' would be wise. Expected result: ---------------- The test should pass. Actual result: -------------- The test fails.