Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #38422 : session.use_trans_sid not changeable by ini_set
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 25th August 13:38
php-bugs@lists.php.net (strube at physik3 dot gwdg dot
External User
 
Posts: 1
Default #38422 : session.use_trans_sid not changeable by ini_set



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 With Quote


  sponsored links


2 25th August 14:55
php-bugs@lists.php.net (strube at physik3 dot gwdg dot
External User
 
Posts: 1
Default #38422 : session.use_trans_sid not changeable by ini_set



ID: 38422
User updated by: strube at physik3 dot gwdg dot de
Reported By: strube at physik3 dot gwdg dot de
Status: Open
Bug Type: Session related
Operating System: Solaris 9 (SPARC)
PHP Version: 4.4.3
New Comment:

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'));


Previous Comments:
------------------------------------------------------------------------

[2006-08-11 10:00:06] 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


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=38422&edit=1
  Reply With Quote
3 25th August 14:55
php-bugs@lists.php.net (strube at physik3 dot gwdg dot
External User
 
Posts: 1
Default #38422 : session.use_trans_sid not changeable by ini_set


ID: 38422
User updated by: strube at physik3 dot gwdg dot de
Reported By: strube at physik3 dot gwdg dot de
Status: Bogus
Bug Type: Session related
Operating System: Solaris 9 (SPARC)
PHP Version: 4.4.3
New Comment:

Then the do***entation is wrong, which states PHP_INI_ALL in
"Appendix G. php.ini directives".
Also, in the Makefile (line 154), option -d 'session.use_trans_sid=1'
must be added for the run-tests.php call in order to prevent failure of
ext/session/tests/bug36459.phpt.


Previous Comments:
------------------------------------------------------------------------

[2006-08-11 10:15:36] tony2001@php.net

ini_set() returns FALSE, not 0 and this is expected since you cannot
change it using ini_set() as the flag is
PHP_INI_SYSTEM|PHP_INI_PERDIR.


------------------------------------------------------------------------

[2006-08-11 10:02:29] strube at physik3 dot gwdg dot de

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'));

------------------------------------------------------------------------

[2006-08-11 10:00:06] 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


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=38422&edit=1
  Reply With Quote
4 25th August 14:56
php-bugs@lists.php.net (strube at physik3 dot gwdg dot
External User
 
Posts: 1
Default #38422 : session.use_trans_sid not changeable by ini_set


ID: 38422
User updated by: strube at physik3 dot gwdg dot de
Reported By: strube at physik3 dot gwdg dot de
Status: Bogus
Bug Type: Session related
Operating System: Solaris 9 (SPARC)
PHP Version: 4.4.3
New Comment:

Sorry, I overlooked the last column of the table in Appendix G:
PHP_INI_ALL in PHP <= 4.2.3. PHP_INI_PERDIR in PHP < 5.

But the Makefile has still to be changed for 4.4.3.


Previous Comments:
------------------------------------------------------------------------

[2006-08-11 10:26:28] strube at physik3 dot gwdg dot de

Then the do***entation is wrong, which states PHP_INI_ALL in
"Appendix G. php.ini directives".
Also, in the Makefile (line 154), option -d 'session.use_trans_sid=1'
must be added for the run-tests.php call in order to prevent failure of
ext/session/tests/bug36459.phpt.

------------------------------------------------------------------------

[2006-08-11 10:15:36] tony2001@php.net

ini_set() returns FALSE, not 0 and this is expected since you cannot
change it using ini_set() as the flag is
PHP_INI_SYSTEM|PHP_INI_PERDIR.


------------------------------------------------------------------------

[2006-08-11 10:02:29] strube at physik3 dot gwdg dot de

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'));

------------------------------------------------------------------------

[2006-08-11 10:00:06] 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


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=38422&edit=1
  Reply With Quote
5 25th August 14:56
tony2001
External User
 
Posts: 1
Default #38422 : session.use_trans_sid not changeable by ini_set


ID: 38422
Updated by: tony2001@php.net
Reported By: strube at physik3 dot gwdg dot de
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Solaris 9 (SPARC)
PHP Version: 4.4.3
New Comment:

ini_set() returns FALSE, not 0 and this is expected since you cannot
change it using ini_set() as the flag is
PHP_INI_SYSTEM|PHP_INI_PERDIR.

Previous Comments:
------------------------------------------------------------------------

[2006-08-11 10:02:29] strube at physik3 dot gwdg dot de

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'));

------------------------------------------------------------------------

[2006-08-11 10:00:06] 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


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=38422&edit=1
  Reply With Quote
6 25th August 14:57
tony2001
External User
 
Posts: 1
Default #38422 : session.use_trans_sid not changeable by ini_set


ID: 38422
Updated by: tony2001@php.net
Reported By: strube at physik3 dot gwdg dot de
Status: Bogus
Bug Type: Session related
Operating System: Solaris 9 (SPARC)
PHP Version: 4.4.3
New Comment:

The test is fixed in CVS.


Previous Comments:
------------------------------------------------------------------------

[2006-08-11 10:31:55] strube at physik3 dot gwdg dot de

Sorry, I overlooked the last column of the table in Appendix G:
PHP_INI_ALL in PHP <= 4.2.3. PHP_INI_PERDIR in PHP < 5.

But the Makefile has still to be changed for 4.4.3.

------------------------------------------------------------------------

[2006-08-11 10:26:28] strube at physik3 dot gwdg dot de

Then the do***entation is wrong, which states PHP_INI_ALL in
"Appendix G. php.ini directives".
Also, in the Makefile (line 154), option -d 'session.use_trans_sid=1'
must be added for the run-tests.php call in order to prevent failure of
ext/session/tests/bug36459.phpt.

------------------------------------------------------------------------

[2006-08-11 10:15:36] tony2001@php.net

ini_set() returns FALSE, not 0 and this is expected since you cannot
change it using ini_set() as the flag is
PHP_INI_SYSTEM|PHP_INI_PERDIR.


------------------------------------------------------------------------

[2006-08-11 10:02:29] strube at physik3 dot gwdg dot de

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'));

------------------------------------------------------------------------

[2006-08-11 10:00:06] 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


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=38422&edit=1
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666