]> granicus.if.org Git - php/commitdiff
MFH: Fixed segfault on invalid session.save_path
authorHannes Magnusson <bjori@php.net>
Mon, 6 Apr 2009 11:49:33 +0000 (11:49 +0000)
committerHannes Magnusson <bjori@php.net>
Mon, 6 Apr 2009 11:49:33 +0000 (11:49 +0000)
NEWS
ext/session/mod_files.c

diff --git a/NEWS b/NEWS
index 02377498900e825ab401aa1a620a0e07a1b92931..b24a0e2404a9c038431c32fd8051c86a250a26e1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ PHP                                                                        NEWS
 
 - Fixed memory corruptions while reading properties of zip files. (Ilia)
 - Fixed memory leak in ob_get_clean/ob_get_flush. (Christian)
+- Fixed segfault on invalid session.save_path. (Hannes)
 
 - Fixed bug #47845 (PDO_Firebird omits first row from query). (Lars W)
 - Fixed bug #47831 (Compile warning for strnlen() in main/spprintf.c).
index fc3317029aa0a7878dfcb92cbdfaccc2e0d0cc59..312bbe6ef9890057bca75a7a42ac49b364b6443c 100644 (file)
@@ -295,7 +295,7 @@ PS_OPEN_FUNC(files)
                argv[argc++] = last;
                last = ++p;
                p = strchr(p, ';');
-               if (argc > 2) break;
+               if (argc > 1) break;
        }
        argv[argc++] = last;