Edit report at https://bugs.php.net/bug.php?id=55187&edit=1
ID: 55187 Updated by: paj...@php.net Reported by: jinmoku at hotmail dot com Summary: readlink returns weird characters when false result -Status: Open +Status: Closed Type: Bug Package: Filesystem function related Operating System: Win 7 PHP Version: 5.3.6 -Assigned To: +Assigned To: pajoye Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. 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/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-07-12 11:15:15] paj...@php.net Automatic comment from SVN on behalf of pajoye Revision: http://svn.php.net/viewvc/?view=revision&revision=313176 Log: - Fixed bug #55187, readlink returns weird characters when false result ------------------------------------------------------------------------ [2011-07-12 10:06:12] jinmoku at hotmail dot com more fun with : var_dump(is_link('')); var_dump(readlink('')); ------------------------------------------------------------------------ [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