From: Pierre Joye Date: Thu, 4 Feb 2010 09:57:30 +0000 (+0000) Subject: - set errno on failure so that the caller can still rely on strerror, missing patch X-Git-Tag: php-5.3.2RC2~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11063bfdf54c1038958087a5dce3f85644d6418a;p=php - set errno on failure so that the caller can still rely on strerror, missing patch --- diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index af53f25ac0..743aa28643 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -1002,7 +1002,11 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func if (path_length == 0 || path_length >= MAXPATHLEN-1) { #ifdef TSRM_WIN32 +# if _MSC_VER < 1300 + errno = EINVAL; +# else _set_errno(EINVAL); +# endif #else errno = EINVAL; #endif