diff options
author | Pierre Joye <pajoye@php.net> | 2011-07-12 15:15:17 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2011-07-12 15:15:17 +0000 |
commit | dd1a0be3c090f34ef7f1cd107ad340ae28f1d464 (patch) | |
tree | e7fc3ac9545441fd24ae0789b3651628d8f34706 | |
parent | 76285595b470418835c6bc4c5ee8bcb2a98215c2 (diff) | |
download | php-git-dd1a0be3c090f34ef7f1cd107ad340ae28f1d464.tar.gz |
- Fixed bug #55187, readlink returns weird characters when false result
-rw-r--r-- | ext/standard/link_win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/link_win32.c b/ext/standard/link_win32.c index d7589bbb7b..703bcc1e23 100644 --- a/ext/standard/link_win32.c +++ b/ext/standard/link_win32.c @@ -76,6 +76,7 @@ PHP_FUNCTION(readlink) if (php_sys_readlink(link, target, MAXPATHLEN) == -1) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "readlink failed to read the symbolic link (%s), error %d)", link, GetLastError()); + RETURN_FALSE; } RETURN_STRING(target, 1); } |