php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #53295
Patch session5.3.3.diff revision 2010-11-11 14:51 UTC by yoram dot b at zend dot com

Patch session5.3.3.diff for Session related Bug #53295

Patch version 2010-11-11 14:51 UTC

Return to Bug #53295 | Download this patch
Patch Revisions:

Developer: yoram.b@zend.com

diff -r -u php-5.3.3/ext/session/session.c php-5.3.3-new/ext/session/session.c
--- php-5.3.3/ext/session/session.c	2010-06-09 01:30:16.000000000 +0300
+++ php-5.3.3-new/ext/session/session.c	2010-10-12 15:06:35.000000000 +0200
@@ -2132,6 +2132,8 @@
 {
 	php_rinit_session_globals(TSRMLS_C);
 
+	/* we use the struct union-member, not the array, to avoid size constant */
+	memset (&(PS(mod_user_names).name),0,sizeof(PS(mod_user_names))); 
 	if (PS(mod) == NULL) {
 		char *value;
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 15:01:33 2024 UTC