|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-20 06:27 UTC] judas dot iscariote at gmail dot com
[2007-02-20 13:08 UTC] helly@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 17:00:01 2025 UTC |
Description: ------------ SplFileInfo::getOwner() and SplFileInfo::getGroup() give a warning on broken symlink. This is probably due the fact that the function follows the symlink. Reproduce code: --------------- system: ln -s nothing /broken <?php $fi = new SplFileInfo('/broken'); echo $fi->getOwner(); echo $fi->getGroup(); ?> Expected result: ---------------- rootroot Actual result: -------------- Warning: SplFileInfo::getOwner() [function.SplFileInfo-getOwner]: stat failed for /broken in /home/arnold/projects/jasny/jasny-explorer/webroot/index.php on line 6 Warning: SplFileInfo::getGroup() [function.SplFileInfo-getGroup]: stat failed for /broken in /home/arnold/projects/jasny/jasny-explorer/webroot/index.php on line 7