mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- Fixed bug #55187, readlink returns weird characters when false result
This commit is contained in:
parent
b8251d54a8
commit
3be1f24fba
3
NEWS
3
NEWS
@ -6,6 +6,8 @@ PHP NEWS
|
||||
though the class has none). (Felipe)
|
||||
|
||||
- Core
|
||||
. Fixed bug #55187 (readlink returns weird characters when false result).
|
||||
(Pierre)
|
||||
. Fixed bug #55014 (Compile failure due to improper use of ctime_r()). (Ilia)
|
||||
. Fixed bug #54332 (Crash in zend_mm_check_ptr // Heap corruption). (Dmitry)
|
||||
. Fixed bug #54305 (Crash in gc_remove_zval_from_buffer). (Dmitry)
|
||||
@ -15,6 +17,7 @@ PHP NEWS
|
||||
. Fixed bug #52935 (call exit in user_error_handler cause stream relate
|
||||
core). (Gustavo)
|
||||
|
||||
|
||||
- MCrypt
|
||||
. Change E_ERROR to E_WARNING in mcrypt_create_iv when not enough data
|
||||
has been fetched (Windows). (Pierre)
|
||||
|
@ -69,6 +69,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