php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65131 $UserData & $_SESSION
Submitted: 2013-06-26 06:19 UTC Modified: 2013-07-01 07:00 UTC
From: buhsoft at mail dot ru Assigned:
Status: No Feedback Package: Session related
PHP Version: 5.3.26 OS: Windows 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: buhsoft at mail dot ru
New email:
PHP Version: OS:

 

 [2013-06-26 06:19 UTC] buhsoft at mail dot ru
Description:
------------
First output:
Array ( [UserData] => 999 ) 
Array ( [UserData] => 999 ) 

After page updating in browser output:
Array ( [UserData] => 999 )
Array ( [UserData] => )

i.e. using variable $UserData impact on content of $_SESSION array


Test script:
---------------
<?php
header('Content-type: text/html; charset=utf-8');
session_start();
?>

<!DOCTYPE HTML>
<head>
<meta charset="UTF-8">
<title>ТЕСТ 2</title>
</head>

<body>
<?php

$UserData=999;

$_SESSION['UserData']=$UserData;
print_r($_SESSION);
echo "<br>\n";

$UserData="";

print_r($_SESSION);
echo "<br>\n";


?>
</body>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-26 07:01 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2013-06-26 07:01 UTC] ab@php.net
Cant repro this using apache 2.2. I always get the first output. Please give more 
details about your setup. The snippet looks harmless though.
 [2013-06-26 07:18 UTC] buhsoft at mail dot ru
PHP Version 5.3.5

System 	Windows NT ������-THINK 6.1 build 7601 (Unknow Windows version Home Basic Edition Service Pack 1) i586
Build Date 	Jan 6 2011 17:50:45
Compiler 	MSVC6 (Visual C++ 6.0)
Architecture 	x86
Configure Command 	cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-isapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static"
Server API 	Apache 2.0 Handler
Virtual Directory Support 	enabled
Configuration File (php.ini) Path 	C:\Windows
Loaded Configuration File 	C:\xampp\php\php.ini
Scan this dir for additional .ini files 	(none)
Additional .ini files parsed 	(none)
PHP API 	20090626
PHP Extension 	20090626
Zend Extension 	220090626
Zend Extension Build 	API220090626,TS,VC6
PHP Extension Build 	API20090626,TS,VC6
Debug Build 	no
Thread Safety 	enabled
Zend Memory Manager 	enabled
Zend Multibyte Support 	disabled
IPv6 Support 	enabled
Registered PHP Streams 	php, file, glob, data, http, ftp, zip, compress.zlib, compress.bzip2, phar
Registered Stream Socket Transports 	tcp, udp
Registered Stream Filters 	convert.iconv.*, mcrypt.*, mdecrypt.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*, bzip2.*

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with Codelobster PHP Debugger v4.0.0, (C) 2005-2007, by Codelobster Software

PHP Credits
Configuration
apache2handler
Apache Version 	Apache
Apache API Version 	20051115
Server Administrator 	postmaster@localhost
Hostname:Port 	ishodniki:0
Max Requests 	Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts 	Connection: 300 - Keep-Alive: 5
Virtual Server 	Yes
Server Root 	C:/xampp/apache
Loaded Modules 	core mod_win32 mpm_winnt http_core mod_so mod_actions mod_alias mod_asis mod_auth_basic mod_auth_digest mod_authn_default mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dav_lock mod_dir mod_env mod_headers mod_include mod_info mod_isapi mod_log_config mod_mime mod_negotiation mod_proxy mod_proxy_ajp mod_rewrite mod_setenvif mod_ssl mod_status mod_php5 mod_perl

Directive	Local Value	Master Value
engine	1	1
last_modified	0	0
xbithack	0	0

Apache Environment
Variable	Value
MIBDIRS 	C:/xampp/php/extras/mibs
MYSQL_HOME 	\xampp\mysql\bin
OPENSSL_CONF 	C:/xampp/apache/bin/openssl.cnf
PHP_PEAR_SYSCONF_DIR 	\xampp\php
PHPRC 	\xampp\php
TMP 	\xampp\tmp
HTTP_HOST 	ishodniki
HTTP_USER_AGENT 	Mozilla/5.0 (Windows NT 6.1; rv:21.0) Gecko/20100101 Firefox/21.0
HTTP_ACCEPT 	text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE 	ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
HTTP_ACCEPT_ENCODING 	gzip, deflate
HTTP_COOKIE 	id=3; PHPSESSID=tc2r03il9f9b5j5kllr4ei3n65
HTTP_CONNECTION 	keep-alive
PATH 	C:\Program Files\AMD APP\bin\x86;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Lenovo;C:\Program Files\Common Files\Ulead Systems\MPEG;C:\Program Files\Lenovo\Access Connections\;C:\Program Files\NuSphere\TechPlat\apache\php;C:\Program Files\Windows Live\Shared
SystemRoot 	C:\Windows
COMSPEC 	C:\Windows\system32\cmd.exe
PATHEXT 	.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR 	C:\Windows
SERVER_SIGNATURE 	<address>Apache Server at ishodniki Port 80</address>
SERVER_SOFTWARE 	Apache
SERVER_NAME 	ishodniki
SERVER_ADDR 	127.0.0.1
SERVER_PORT 	80
REMOTE_ADDR 	127.0.0.1
DOCUMENT_ROOT 	C:/xampp/htdocs/ishodniki
SERVER_ADMIN 	postmaster@localhost
SCRIPT_FILENAME 	C:/xampp/htdocs/ishodniki/test2.php
REMOTE_PORT 	3412
GATEWAY_INTERFACE 	CGI/1.1
SERVER_PROTOCOL 	HTTP/1.1
REQUEST_METHOD 	GET
QUERY_STRING 	no value
REQUEST_URI 	/test2.php
SCRIPT_NAME 	/test2.php
 [2013-06-26 17:20 UTC] ab@php.net
Thanks for posting the infos. Unfortunately we support neither xampp nor VC6 
builds. To properly diagnose it please try an official php build (5.3 VC9 for 
instance) with apache from apachelounge.com . You can find all necessary info 
under http://windows.php.net/

Thanks
 [2013-07-01 07:00 UTC] ab@php.net
-Status: Feedback +Status: No Feedback
 [2013-07-01 07:00 UTC] ab@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Jan 29 07:05:53 2023 UTC