From:             strube at physik3 dot gwdg dot de
Operating system: Solaris 9 (SPARC)
PHP version:      4.4.3
PHP Bug Type:     Session related
Bug description:  session.use_trans_sid not changeable by ini_set

Description:
------------
In PHP 4.4.2 and 4.4.3 (cannot test earlier ones any more), the option
session.use_trans_sid cannot be changed by function ini_set, but can be
changed using php.ini or the command-line option -d. Also ini_set always
returns 0 as the old value for session.use_trans_sid, even if it was set
to 1. (BTW, this causes test ext/session/tests/bug36459.phpt to fail --
not because of bug 36459, of course.)
The bug persists even on a second call to ini_set (unlike bug #30422).
Configuration:
env CC=/opt/SUNWspro/bin/cc CFLAGS=-xO2 \
./configure  --enable-discard-path --enable-force-cgi-redirect --with-ndbm
--with-dba --with-db --with-db2=/opt/dpiwww/apache
--with-mysql=/opt/dpiwww/mysql --enable-sysvsem --enable-sysvshm
--with-exec-dir=/opt/dpiwww/php/bin
--with-config-file-path=/opt/dpiwww/php/lib --prefix=/opt/dpiwww/php
--disable-debug --with-zlib --with-bz2 --with-gd --with-jpeg-dir=/usr/sfw
--with-png-dir=/usr/sfw --with-xpm-dir=/usr/openwin
--with-freetype-dir=/usr/sfw --enable-gd-native-ttf


Reproduce code:
---------------
*** Script 1:
<?php
printf("%d\n",ini_get('session.use_trans_sid'));
printf("%d\n",ini_set('session.use_trans_sid',1));
printf("%d\n",ini_get('session.use_trans_sid'));

*** Script 2:
<?php
printf("%d\n",ini_get('session.use_trans_sid'));
printf("%d\n",ini_set('session.use_trans_sid',1));
printf("%d\n",ini_get('session.use_trans_sid'));

Expected result:
----------------
*** Script 1:
If previously 0:
0
0
1
If previously 1:
1
1
1

*** Script 2:
If previously 0:
0
0
0
If previously 1:
1
1
0

Actual result:
--------------
*** Both Scripts:
If previously 0:
0
0
0
If previously 1:
1
0
1

-- 
Edit bug report at http://bugs.php.net/?id=38422&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38422&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38422&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38422&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38422&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38422&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38422&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38422&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38422&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38422&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38422&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38422&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38422&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38422&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38422&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38422&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38422&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38422&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38422&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38422&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38422&r=mysqlcfg

Reply via email to