Skip to content

Commit 3cd3881

Browse files
committed
backported patch for bug #69472
1 parent 1c7a902 commit 3cd3881

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ PHP NEWS
1313
. Fixed bug #68652 (segmentation fault in destructor). (Dmitry)
1414
. Fixed bug #69419 (Returning compatible sub generator produces a warning).
1515
(Nikita)
16+
. Fixed bug #69472 (php_sys_readlink ignores misc errors from
17+
GetFinalPathNameByHandleA). (Jan Starke)
1618

1719
- ODBC:
1820
. Fixed bug #69474 (ODBC: Query with same field name from two tables returns

TSRM/tsrm_virtual_cwd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ CWD_API int php_sys_readlink(const char *link, char *target, size_t target_len){
251251
}
252252

253253
dwRet = pGetFinalPathNameByHandle(hFile, target, MAXPATHLEN, VOLUME_NAME_DOS);
254-
if(dwRet >= MAXPATHLEN) {
254+
if(dwRet >= MAXPATHLEN || dwRet == 0) {
255255
return -1;
256256
}
257257

0 commit comments

Comments
 (0)