]> granicus.if.org Git - php/commitdiff
MFH: fix bug #32944 (Disabling session.use_cookies doesn't prevent reading session...
authorAntony Dovgal <tony2001@php.net>
Fri, 20 May 2005 10:28:35 +0000 (10:28 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 20 May 2005 10:28:35 +0000 (10:28 +0000)
NEWS
ext/session/session.c

diff --git a/NEWS b/NEWS
index 6e8c0e7104fc1d497dddaff18db08a2d9a720290..1d0160864eb45335f7941eff9d2e67be3c6aeaa9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,8 @@ PHP 4                                                                      NEWS
 - Fixed bug #33019 (socket errors cause memory leaks in php_strerror()). 
   (jwozniak23 at poczta dot onet dot pl, Tony).
 - Fixed bug #32974 (pcntl calls malloc() from a signal handler). (Wez)
+- Fixed bug #32944 (Disabling session.use_cookies doesn't prevent reading 
+  session cookies). (Jani, Tony)
 - Fixed bug #32936 (http redirects URLs are not checked for control chars). (Ilia)
 - Fixed bug #32932 (Oracle LDAP: ldap_get_entries invalid pointer). (Jani)
 - Fixed bug #32904 (pg_get_notify() ignores result_type parameter). (Tony)
index 816f03f04076413a6ebd952e06b36cc93f7eca79..9904e7a9e74e65e5d8fdb5cebc606ceaa52861b2 100644 (file)
@@ -1015,7 +1015,7 @@ PHPAPI void php_session_start(TSRMLS_D)
         */
 
        if (!PS(id)) {
-               if (zend_hash_find(&EG(symbol_table), "_COOKIE",
+               if (PS(use_cookies) && zend_hash_find(&EG(symbol_table), "_COOKIE",
                                        sizeof("_COOKIE"), (void **) &data) == SUCCESS &&
                                Z_TYPE_PP(data) == IS_ARRAY &&
                                zend_hash_find(Z_ARRVAL_PP(data), PS(session_name),