#42944 [Opn->Csd]: FAILing "Test fileperms(), chmod() functions: error conditions"
| From: | iliaa@php.net | Date: | Sun, 21 Oct 2007 15:41:59 +0000 |
| Subject: | #42944 [Opn->Csd]: FAILing "Test fileperms(), chmod() functions: error conditions" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118789@lists.php.net to get a copy of this message | ||
ID: 42944
Updated by: iliaa@php.net
Reported By: jiri dot hruska at fud dot cz
-Status: Open
+Status: Closed
Bug Type: Filesystem function related
Operating System: SunOS 5.8
PHP Version: 5.2.4
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-10-12 11:24:32] jiri dot hruska at fud dot cz
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42944&edit=1