Skip to content

Commit 4af9ca5

Browse files
committed
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: backported patch for bug #69472
2 parents 5cfb81d + 3cd3881 commit 4af9ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_virtual_cwd.c

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

263263
dwRet = pGetFinalPathNameByHandle(hFile, target, MAXPATHLEN, VOLUME_NAME_DOS);
264-
if(dwRet >= MAXPATHLEN) {
264+
if(dwRet >= MAXPATHLEN || dwRet == 0) {
265265
return -1;
266266
}
267267

0 commit comments

Comments
 (0)