com php-src: This check here is not needed anymore for Windows (Unsupported Windows version check): main/fopen_wrappers.c

From: Date: Mon, 30 Mar 2015 02:13:43 +0000
Subject: com php-src: This check here is not needed anymore for Windows (Unsupported Windows version check): main/fopen_wrappers.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85930@lists.php.net to get a copy of this message
Commit: 298a0554a7b78feb7c1b2fd071041ac2b25c8c65 Author: Kalle Sommer Nielsen <kalle@php.net> Mon, 30 Mar 2015 04:13:43 +0200 Parents: 6a8ab3d7c6e24b2294099647ba0ebf2addf16bd0 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=298a0554a7b78feb7c1b2fd071041ac2b25c8c65 Log: This check here is not needed anymore for Windows (Unsupported Windows version check) Changed paths: M main/fopen_wrappers.c Diff: diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index d8a8330..85127c3 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -173,26 +173,20 @@ PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path while (VCWD_REALPATH(path_tmp, resolved_name) == NULL) { #if defined(PHP_WIN32) || defined(HAVE_SYMLINK) -#if defined(PHP_WIN32) - if (EG(windows_version_info).dwMajorVersion > 5) { -#endif - if (nesting_level == 0) { - int ret; - char buf[MAXPATHLEN]; + if (nesting_level == 0) { + int ret; + char buf[MAXPATHLEN]; - ret = php_sys_readlink(path_tmp, buf, MAXPATHLEN - 1); - if (ret < 0) { - /* not a broken symlink, move along.. */ - } else { - /* put the real path into the path buffer */ - memcpy(path_tmp, buf, ret); - path_tmp[ret] = '\0'; - } + ret = php_sys_readlink(path_tmp, buf, MAXPATHLEN - 1); + if (ret < 0) { + /* not a broken symlink, move along.. */ + } else { + /* put the real path into the path buffer */ + memcpy(path_tmp, buf, ret); + path_tmp[ret] = '\0'; } -#if defined(PHP_WIN32) } #endif -#endif #if defined(PHP_WIN32) || defined(NETWARE) path_file = strrchr(path_tmp, DEFAULT_SLASH);

« previous php.cvs (#85930) next »