summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2016-07-12 21:52:27 -0700
committerFerenc Kovacs <tyra3l@gmail.com>2016-07-21 02:08:07 +0200
commit44d96c42d220072995ea5074230ed91f1c8c36e4 (patch)
tree10768821d9f3900537a685dcaae057c9f05d3110
parent7fa06d4d7568d52706ac2a1ed431dda7f1ad68b4 (diff)
downloadphp-git-44d96c42d220072995ea5074230ed91f1c8c36e4.tar.gz
Fix for bug #72513
-rw-r--r--Zend/zend_virtual_cwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_virtual_cwd.c b/Zend/zend_virtual_cwd.c
index a143842143..5a5bccecab 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;