From: joao dot rei at iestradas dot pt
Operating system:
PHP version: 4.3.1
PHP Bug Type: Session related
Bug description: session not woking in 4.3.1 and working in 4.2.2
Description:
------------
I have an aplication in PHP Version 4.2.2 working and stop working in PHP
Version 4.3.1 because of session variables...
Both versions have register_globals ON
In the 4.2.2 if i do echo $var; it would be recognized as the POST on any
form field registered
In the 4.3.1 i have to do echo $_REQUEST["var"]; or call the function
import_request_variables; or...
CFG of 4.3.1:
System Linux deswww1 2.4.9-e.27smp #1 SMP Tue Aug 5 15:49:54 EDT 2003
i686
Configure Command './configure' '--prefix=/usr'
'--with-config-file-path=/etc' '--libdir=/usr/lib' '--with-gd'
'--with-openssl' '--with-mm' '--with-png' '--with-zlib'
'--with-layout=GNU' '--with-gettext' '--with-apxs=/usr/sbin/apxs'
'--with-oci8=/u01/appl/oracle9i' '--enable-track-vars' '--disable-debug'
'--disable-cgi' '--enable-sigchild'
session
Session Support enabled
Registered save handlers files user mm
Directive Local Value Master Value
session.auto_start On On
session.bug_compat_42 Off Off
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_dividend 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid On On
CFG of 4.2.2:
System SunOS iepdes1 5.8 Generic_108528-13 sun4u sparc
Configure Command './configure' '--with-apache=../apache_1.3.26'
'--disable-debug' '--enable-pic' '--enable-shared'
'--enable-inline-optimization' '--enable-sigchild' '--with-regex=system'
'--with-gettext' '--with-gd=/usr/local' '--with-png-dir=/usr/local'
'--with-zlib-dir=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-freetype-dir=/usr/local' '--with-oci8=/u01/appl/oracle8i'
'--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode'
'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm'
'--enable-track-vars' '--enable-yp' '--enable-ftp' '--enable-wddx'
'--without-mysql' '--with-xml' '--enable-exif'
session
Session Support enabled
Directive Local Value Master Value
session.auto_start On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_trans_sid 1 1
Reproduce code:
---------------
This code is working fine in 4.2.2 and failing in 4.3.1
<?
session_start();
session_register("login0");
echo "LOGIN=$login0<br>";
echo $_REQUEST["login0"]." REQUEST<br>";
print"<FORM action=teste.php method=post>
<INPUT type=TEXT maxLength=40 size=15 name=login0 value=10>
<INPUT style='FONT-SIZE: 8pt; FONT-FAMILY: Arial' type=submit value=Send>
</FORM>";
?>
Expected result:
----------------
LOGIN= 10
10 REQUEST
Actual result:
--------------
LOGIN=
10 REQUEST
--
Edit bug report at http://bugs.php.net/?id=25761&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25761&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25761&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25761&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25761&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25761&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25761&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25761&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25761&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25761&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25761&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25761&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25761&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25761&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25761&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25761&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25761&r=float