diff options
| author | Stanislav Malyshev <stas@php.net> | 2016-07-12 21:52:27 -0700 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2016-07-19 17:26:14 +0200 |
| commit | 39aafd71f1686218c40a69ce0812c65c602eabcf (patch) | |
| tree | 87b1492e0da577f0f7d933975e3f842991e6a7ed | |
| parent | cc06543112c28680af5978b5fa63f987361a8d85 (diff) | |
| download | php-git-39aafd71f1686218c40a69ce0812c65c602eabcf.tar.gz | |
Fix for bug #72513
This is applicable to 7 as well, but was somehow missing from the merge.
(cherry picked from commit 374ae8e9da58464e22f3e5a461ee95f6240979e7)
| -rw-r--r-- | Zend/zend_virtual_cwd.c | 2 |
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 |
