Bug #55187 [Com]: readlink returns weird characters when false result
| From: | jinmoku at hotmail dot com | Date: | Tue, 12 Jul 2011 14:06:12 +0000 |
| Subject: | Bug #55187 [Com]: readlink returns weird characters when false result | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161824@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55187&edit=1
ID: 55187
Comment by: jinmoku at hotmail dot com
Reported by: jinmoku at hotmail dot com
Summary: readlink returns weird characters when false result
Status: Open
Type: Bug
Package: Filesystem function related
Operating System: Win 7
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
more fun with :
var_dump(is_link(''));
var_dump(readlink(''));
Previous Comments:
------------------------------------------------------------------------
[2011-07-12 10:03:43] jinmoku at hotmail dot com
Added OS
------------------------------------------------------------------------
[2011-07-12 10:00:48] jinmoku at hotmail dot com
Description:
------------
readlink returns weird characters when false result
Test script:
---------------
var_dump(readlink(''));
Expected result:
----------------
Warning: readlink(): readlink failed to read the symbolic link (), error 3)
string(4) "false"
Actual result:
--------------
Warning: readlink(): readlink failed to read the symbolic link (), error 3)
string(4) "<Ks"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55187&edit=1