ID: 19531
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Slackware Linux 8.0
PHP Version: 4CVS-2002-09-20
New Comment:
is_link() returns boolean and readlink() returns a string..
That's why it's empty. Try doing 'var_dump(is_link("some_link"));' and
it should be clear.
Previous Comments:
------------------------------------------------------------------------
[2002-09-20 17:46:24] [EMAIL PROTECTED]
This bug has been fixed in CVS.
In case this was a PHP problem, 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/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Try it with any other symlinks see if it works, if it does, check file
permissions on /usr/local/apache2/manual/.
------------------------------------------------------------------------
[2002-09-20 16:15:17] [EMAIL PROTECTED]
from CVS for 200209132100
Loop through a directory or set your own variables and:
$erk = is_link($dirname."/".$file);
$erk2 = @readlink($dirname."/".$file);
echo "Checking file=$dirname/$file<br> -LinkStatus=$erk<br>
--Readlink=$erk2<br>";
produces for me on a directory containing a link:
Checking file=/share/web/slinks/htdocs
-LinkStatus=
--Readlink=/usr/local/apache2/manual/
So Readlink() works, is_link() does not. Funky huh?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19531&edit=1