|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-08-11 10:00 UTC] strube at physik3 dot gwdg dot de
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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 01:00:01 2025 UTC |
Correction (Script 2 should set to 0, not to 1): *** Script 2: <?php printf("%d\n",ini_get('session.use_trans_sid')); printf("%d\n",ini_set('session.use_trans_sid',0)); printf("%d\n",ini_get('session.use_trans_sid'));