From 6f475c1ce6e478f9d82cdeb6d69a12692e1e9c96 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 10 Feb 2005 19:40:53 +0000 Subject: [PATCH] MFH: bug #28324 --- NEWS | 2 ++ ext/session/session.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index ea2f82cc35..7a02d2cbc1 100644 --- a/NEWS +++ b/NEWS @@ -106,6 +106,8 @@ PHP NEWS entries). (Andrei) - Fixed bug #28444 (Cannot access undefined property for object with overloaded property access). (Dmitry) +- Fixed bug #28324 (HTTP_SESSION_VARS appear when register_long_arrays is + Off). (Tony) - Fixed bug #28227 (PHP CGI depends upon non-standard SCRIPT_FILENAME). (lukem at NetBSD dot org) - Fixed bug #28074 (FastCGI: stderr should be written in a FCGI stderr stream). diff --git a/ext/session/session.c b/ext/session/session.c index 72788d4e47..599a2c0571 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -536,7 +536,9 @@ static void php_session_track_init(TSRMLS_D) array_init(session_vars); PS(http_session_vars) = session_vars; - ZEND_SET_GLOBAL_VAR_WITH_LENGTH("HTTP_SESSION_VARS", sizeof("HTTP_SESSION_VARS"), PS(http_session_vars), 2, 1); + if (PG(register_long_arrays)) { + ZEND_SET_GLOBAL_VAR_WITH_LENGTH("HTTP_SESSION_VARS", sizeof("HTTP_SESSION_VARS"), PS(http_session_vars), 2, 1); + } ZEND_SET_GLOBAL_VAR_WITH_LENGTH("_SESSION", sizeof("_SESSION"), PS(http_session_vars), 2, 1); } -- 2.50.1