From: jiri dot hruska at fud dot cz
Operating system: SunOS 5.8
PHP version: 5.2.4
PHP Bug Type: Unknown/Other Function
Bug description: FAILing "Test fileperms(), chmod() functions: error
conditions"
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 bug report at http://bugs.php.net/?id=42944&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42944&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42944&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42944&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42944&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42944&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42944&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42944&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42944&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42944&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42944&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42944&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42944&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42944&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42944&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42944&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42944&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42944&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42944&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42944&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42944&r=mysqlcfg