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

Reply via email to