From:             interrobang at noicq dot org
Operating system: Debian Squeeze
PHP version:      Irrelevant
Package:          *General Issues
Bug Type:         Bug
Bug description:session_start() returns TRUE if session fails to start

Description:
------------
session_start(); returns TRUE if PHP configured to use mamcached instead of
session files and memcached is down/not reachable.

Package php5-cgi:
PHP 5.3.3-7+squeeze17

Package memcached:
Version: 1.4.5-1

Package php5-memcached:
Version: 1.0.2-1+squeeze2

PHP config:
session.save_handler = memcached
session.save_path = "localhost:11211"

Test script:
---------------
$r = session_start();var_dump($r);die();

Expected result:
----------------
bool(false)
Warning: Unknown: Failed to write session data (memcached). Please verify
that the current setting of session.save_path is correct (localhost:11211)
in Unknown on line 0

Actual result:
--------------
bool(true)
Warning: Unknown: Failed to write session data (memcached). Please verify
that the current setting of session.save_path is correct (localhost:11211)
in Unknown on line 0


-- 
Edit bug report at https://bugs.php.net/bug.php?id=65795&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=65795&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=65795&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=65795&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=65795&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=65795&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=65795&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=65795&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=65795&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=65795&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=65795&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=65795&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=65795&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=65795&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65795&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=65795&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=65795&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=65795&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65795&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=65795&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=65795&r=mysqlcfg

Reply via email to