ID:               42944
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to