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 | 3be1f24fbabd17997365cd70ea578e2ad1278ab7 (patch) | |
tree | c510b384e9365141772d553b5717f81a7a960d0b | |
parent | b8251d54a84b7c2f8e18ed02ed2da33e687dfd32 (diff) | |
download | php-git-3be1f24fbabd17997365cd70ea578e2ad1278ab7.tar.gz |
- Fixed bug #55187, readlink returns weird characters when false result
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | ext/standard/link_win32.c | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -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) diff --git a/ext/standard/link_win32.c b/ext/standard/link_win32.c index 84a0235381..42e168a65c 100644 --- a/ext/standard/link_win32.c +++ b/ext/standard/link_win32.c @@ -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); } |