[PHP-BUG] Bug #71222 [NEW]: stat() failed when other has not x

[email protected] ("bugs dot php at myrosoft dot com")
Newsgroups php.bugs
Message-ID <[email protected]>
From:             bugs dot php at myrosoft dot com
Operating system: openSUSE 13.2 (Harlequin) 64b
PHP version:      7.0Git-2015-12-25 (snap)
Package:          Filesystem function related
Bug Type:         Bug
Bug description:stat() failed when other has not x

Description:
------------
for a directory with

drwxr--r--  2 fotoGtg users   84 Feb 28  2014 myDir

filesize ('path to myDir/.');
fails with
Warning: filesize(): stat failed for ...

with
drwxr--r--  2 fotoGtg users   84 Feb 28  2014 myDir
the call succeeds.

Note that in the former case: 
filesize ('path to myDir');
succeeds,
but 
filesize ('path to myDir/anyExistingFile');
fails.

php version: git id: b3d0178915163c8d52091a6a822007a56ce02801
get_current_user () reports fotoGtg.



-- 
Edit bug report at https://bugs.php.net/bug.php?id=71222&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=71222&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=71222&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=71222&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=71222&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=71222&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=71222&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=71222&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=71222&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=71222&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=71222&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=71222&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=71222&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=71222&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71222&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=71222&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=71222&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=71222&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71222&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=71222&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=71222&r=mysqlcfg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.