From: Stanislav Malyshev Date: Wed, 13 Jul 2016 04:52:27 +0000 (-0700) Subject: Fix for bug #72513 X-Git-Tag: php-7.1.0beta1~28^2^2~1^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a099545bec28c7ebe1641c8a45b68709901f6893;p=php Fix for bug #72513 --- diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c index c8e42ddc60..84a3508ded 100644 --- a/Zend/zend_virtual_cwd.c +++ b/Zend/zend_virtual_cwd.c @@ -1190,7 +1190,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func int add_slash; void *tmp; - if (path_length == 0 || path_length >= MAXPATHLEN-1) { + if (path_length <= 0 || path_length >= MAXPATHLEN-1) { #ifdef TSRM_WIN32 # if _MSC_VER < 1300 errno = EINVAL;