- delimiter in save_path instead of :.
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2000, Version 4.0.1
+- Fixed sessions on Win32. When setting the directory depth parameter in
+ save_path you need to now delimit it with a ';' instead of ':', e.g
+ "5;/tmp" instead of "5:/tmp" (Andi)
- Changed the Apache handler's return status to 'Declined' when a requested
PHP file could not be found. Returning 'Not Found' caused problems
in the ErrorDocument handler stage in that $REDIRECT_REDIRECT_ERROR_NOTES
PS_SET_MOD_DATA(data);
data->fd = -1;
- if ((p = strchr(save_path, ':'))) {
+ if ((p = strchr(save_path, ';'))) {
data->dirdepth = strtol(save_path, NULL, 10);
save_path = p + 1;
}
if (filepath[1] == '.') { /* parent directory - .. */
/* erase the last directory name from the path */
-#if PHP_WIN32
+#ifdef PHP_WIN32
while (*cwd_end != '/' || *cwd_end != '\\') {
#else
while (*cwd_end != '/') {
}
filepath++; /* make filepath appear as a current directory path */
}
-#if PHP_WIN32
+#ifdef PHP_WIN32
if (cwd_end > cwd && (*cwd_end == '/' || *cwd_end == '\\')) { /* remove trailing slashes */
#else
if (cwd_end > cwd && *cwd_end == '/') { /* remove trailing slashes */
static int sapi_cgibin_ub_write(const char *str, uint str_length)
{
- int ret;
+ size_t ret;
ret = fwrite(str, 1, str_length, stdout);
if (ret != str_length) {