Edit report at http://bugs.php.net/bug.php?id=52609&edit=1
ID: 52609 Patch added by: f...@php.net Reported by: rsyring at gmail dot com Summary: session.save_path in php-fpm does not handle ";" in extended format correctly Status: Analyzed Type: Bug Package: FPM related Operating System: ubuntu 10.04 PHP Version: 5.3.3 Assigned To: fat Block user comment: N New Comment: The following patch has been added/updated: Patch Name: php-fpm.ini_scanner_normal.patch Revision: 1281890269 URL: http://bugs.php.net/patch-display.php?bug=52609&patch=php-fpm.ini_scanner_normal.patch&revision=1281890269 Previous Comments: ------------------------------------------------------------------------ [2010-08-15 16:41:30] fel...@php.net Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2010-08-15 05:56:41] rsyring at gmail dot com 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 this bug report at http://bugs.php.net/bug.php?id=52609&edit=1