Bug #52609 [NEW]: session.save_path in php-fpm does not handle ";" in extended format correctly

From: Date: Sun, 15 Aug 2010 03:56:42 +0000
Subject: Bug #52609 [NEW]: session.save_path in php-fpm does not handle ";" in extended format correctly
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-153441@lists.php.net to get a copy of this message
From:             
Operating system: ubuntu 10.04
PHP version:      5.3.3
Package:          *Configuration Issues
Bug Type:         Bug
Bug description:session.save_path in php-fpm does not handle ";" in extended format
correctly

Description:
------------
Version Explanation
=====================

I am using 5.3.2-1ubuntu4.2 with the php-fpm package from here:

https://launchpad.net/~brianmercer/+archive/php

Sorry for mis-representing my version, but I don't have a good method at
the moment for getting 5.3.3 on Lucid.  Also, I checked the changelog
here:

http://svn.php.net/viewvc/php/php-src/branches/PHP_5_3/sapi/fpm/fpm/

For any changes since the PPA was built and I did not see anything related
to this particular issue, so it seems reasonable to assume this bug has not
been fixed.

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

It looks to me like php-fpm configuration parsing is not handling
semi-colons inside of quotes correctly.

The following value works correctly when set in php.ini:

session.save_path = "0;0660;/home/webuser/tmp/php_sessions"

The following value works correctly when set in php-fcm.conf

php_admin_value[session.save_path] = "/home/webuser/tmp/php_sessions"

By "works correctly" I mean that session files are saved to the target
directory and the correct value is shown in phpinfo().



Expected result:
----------------
With the following value set in a php-fcm.conf file:

php_admin_value[session.save_path] =
"0;0660;/home/webuser/tmp/php_sessions"

I would expect to see:

* sessions saved in /home/webuser/tmp/php_sessions
* a mask of 0660 being used
* expect to see "0;0660;/home/webuser/tmp/php_sessions" in the phpinfo()
output for session.save_path

Actual result:
--------------
I actually see an error message when trying to use sessions:

Warning: session_start(): open("0\/sess_9bite7f0iknrudokl1j080i5c7, O_RDWR)
failed: No such file or directory

and '"0' in the phpinfo() output for session.save_path

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



Thread (12 messages)

« previous php.bugs (#153441) next »