]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.1' into PHP-7.2
authorAnatol Belski <ab@php.net>
Wed, 26 Jul 2017 11:21:20 +0000 (13:21 +0200)
committerAnatol Belski <ab@php.net>
Wed, 26 Jul 2017 11:21:20 +0000 (13:21 +0200)
* PHP-7.1:
  Fixed bug #74833, SID constant created with wrong module number

1  2 
ext/session/session.c

index f359c1faf9294dda74cc1d3b51938aefb701ea97,fa392dd3bced9715f239ed406e20d9d6b6cc1f5c..2ae78bdf06736df9644e2b19ef7008ee1d5bccb2
@@@ -94,17 -94,14 +94,20 @@@ zend_class_entry *php_session_update_ti
                return FAILURE; \
        }
  
 +#define SESSION_CHECK_OUTPUT_STATE                                                                            \
 +      if (SG(headers_sent) && stage != ZEND_INI_STAGE_DEACTIVATE) {                                                                                           \
 +              php_error_docref(NULL, E_WARNING, "Headers already sent. You cannot change the session module's ini settings at this time");    \
 +              return FAILURE;                                                                                                 \
 +      }
 +
  #define APPLY_TRANS_SID (PS(use_trans_sid) && !PS(use_only_cookies))
  
 -static void php_session_send_cookie(void);
 -static void php_session_abort(void);
 +static int php_session_send_cookie(void);
 +static int php_session_abort(void);
  
+ /* Initialized in MINIT, readonly otherwise. */
+ static int my_module_number = 0;
  /* Dispatched by RINIT and by php_session_destroy */
  static inline void php_rinit_session_globals(void) /* {{{ */
  {