Lines Matching refs:len
215 size_t len = strlen(sys_temp_dir); in php_get_temporary_directory() local
216 if (len >= 2 && sys_temp_dir[len - 1] == DEFAULT_SLASH) { in php_get_temporary_directory()
217 PG(php_sys_temp_dir) = estrndup(sys_temp_dir, len - 1); in php_get_temporary_directory()
219 } else if (len >= 1 && sys_temp_dir[len - 1] != DEFAULT_SLASH) { in php_get_temporary_directory()
220 PG(php_sys_temp_dir) = estrndup(sys_temp_dir, len); in php_get_temporary_directory()
235 size_t len = GetTempPathW(MAXPATHLEN, sTemp); in php_get_temporary_directory() local
237 if (!len) { in php_get_temporary_directory()
241 if (NULL == (tmp = php_win32_ioutil_conv_w_to_any(sTemp, len, &len))) { in php_get_temporary_directory()
245 PG(php_sys_temp_dir) = estrndup(tmp, len - 1); in php_get_temporary_directory()
255 size_t len = strlen(s); in php_get_temporary_directory() local
257 if (s[len - 1] == DEFAULT_SLASH) { in php_get_temporary_directory()
258 PG(php_sys_temp_dir) = estrndup(s, len - 1); in php_get_temporary_directory()
260 PG(php_sys_temp_dir) = estrndup(s, len); in php_get_temporary_directory()