(Dmitry)
- Core:
+ . Fixed a crash inside dtor for error handling. (Ilia)
. Fixed bug #54180 (parse_url() incorrectly parses path when ? in fragment).
(tomas dot brastavicius at quantum dot lt, Pierrick)
- . Fixed a crash inside dtor for error handling. (Ilia)
+ . Fixed bug #48465 (sys_get_temp_dir() possibly inconsistent when using
+ TMPDIR on Windows). (Pierre)
+
+- cURL extension:
+ . Add curl.cainfo ini option to set the path to a defailt CA bundle file, used
+ by CURLOPT_CAINFO option. (Pierre)
- DateTime extension:
. Fixed bug #54340 (DateTime::add() method bug). (Adam)
*/
{
char sTemp[MAX_PATH];
- DWORD n = GetTempPath(sizeof(sTemp),sTemp);
- assert(0 < n); /* should *never* fail! */
- temporary_directory = strdup(sTemp);
+ DWORD len = GetTempPath(sizeof(sTemp),sTemp);
+ assert(0 < len); /* should *never* fail! */
+ if (sTemp[len - 1] == DEFAULT_SLASH) {
+ temporary_directory = zend_strndup(sTemp, len - 1);
+ } else {
+ temporary_directory = zend_strndup(sTemp, len);
+ }
return temporary_directory;
}
#else