From:             tokul at users dot sourceforge dot net
Operating system: Linux
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  session.use_only_cookies defaults

Description:
------------
PHP documentation states that session.use_only_cookies default value is 1.
Tested 4.4.7, 5.2.3 and 6.0-dev (200706201030). If setting was changed in
later PHP6 versions, sorry for outdated report.

No php.ini file, no overrides in apache configuration and no .htaccess.

setting is 'On' only in 6.0-dev. Default value for 4.4.7 and 5.2.3 is
'Off'. Only in php.ini-dist it is set to 1.

http://bugs.php.net/bug.php?id=36279

36279 bug shows that you had 0 and 1 in some documentation revision. I
think documentation was not updated correctly or default value was not
checked when documentation was updated.

It would be nice to know which setting has higher priority.

For example, if settings are set to
---
session.use_cookies = off
session.use_only_cookies = on
session.use_trans_sid = on
---

Will it use trans_sid or cookies?

Reproduce code:
---------------
var_dump(ini_get('session.use_only_cookies'));

Expected result:
----------------
string(1) "1"

Actual result:
--------------
string(1) "0" on PHP 5.2.3 and PHP 4.2.7

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

Reply via email to