mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
- Fixed bug #55187, readlink returns weird characters when false result
This commit is contained in:
parent
96b5e69889
commit
b6745ea43a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user