Bug #12911 Updated: stat does not report on dead links

From: Date: Wed, 22 Aug 2001 20:27:27 +0000
Subject: Bug #12911 Updated: stat does not report on dead links
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-64101@lists.php.net to get a copy of this message
ID: 12911 Updated by: mfischer Reported By: robin@linuxgate.de Old Status: Open Status: Closed Bug Type: Filesystem function related Operating System: linux PHP Version: 4.0.6 New Comment: This has been fixed in CVS. Try a daily snapshot [1]. - Markus [1] http://snaps.php.net:8000/ Previous Comments: ------------------------------------------------------------------------ [2001-08-22 16:25:47] robin@linuxgate.de i fidled around with this bug a little and it looks like 'fileperms' also fails to report anything on a dead link. it doesnt even report unknown, it just returns false. 'is_link' on the opposite works fine with dead links. ------------------------------------------------------------------------ [2001-08-22 16:13:55] robin@linuxgate.de sorry, there was a typo below. to avoid confusion the function is "stat" not "fstat". ------------------------------------------------------------------------ [2001-08-22 16:11:54] robin@linuxgate.de if you have a link ('foo') pointing at a non exsitent target ('bar'), fstat returns false and does not report anything about it, but even dead links have an owner etc. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12911&edit=1

« previous php.dev (#64101) next »