Skip to content

Commit 8660449

Browse files
committed
Temp CWDG fix
1 parent 10f1c9b commit 8660449

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Zend/zend_virtual_cwd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,10 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
12041204

12051205
CWD_API zend_result virtual_chdir(const char *path) /* {{{ */
12061206
{
1207+
if (CWDG(cwd).cwd == NULL) {
1208+
return FAILURE;
1209+
}
1210+
12071211
return virtual_file_ex(&CWDG(cwd), path, php_is_dir_ok, CWD_REALPATH) ? FAILURE : SUCCESS;
12081212
}
12091213
/* }}} */

0 commit comments

Comments
 (0)