summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2016-07-12 21:52:27 -0700
committerAnatol Belski <ab@php.net>2016-07-19 17:18:24 +0200
commit374ae8e9da58464e22f3e5a461ee95f6240979e7 (patch)
treef8bb6ff35486ff5d83673297a0fb09a89d58a7ed
parent8e0594a944aff6e8afaca7562775ecd12f5fc41e (diff)
downloadphp-git-374ae8e9da58464e22f3e5a461ee95f6240979e7.tar.gz
Fix for bug #72513
This is applicable to 7 as well, but was somehow missing from the merge.
-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 965a59aa75..4dbbb5ea5b 100644
--- a/Zend/zend_virtual_cwd.c
+++ b/Zend/zend_virtual_cwd.c
@@ -1187,7 +1187,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 ZEND_WIN32
_set_errno(EINVAL);
#else