|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-24 15:04 UTC] tony2001@php.net
[2006-11-24 15:13 UTC] thbley at gmail dot com
[2006-11-24 15:20 UTC] tony2001@php.net
[2006-11-25 09:49 UTC] thbley at gmail dot com
[2007-08-17 11:37 UTC] vrana@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 16:00:01 2025 UTC |
Description: ------------ I'm using a custom session save handler. When the write function is called, the current directory is changed to the apache bin directory. This breaks when using relative paths for storing session data. Reproduce code: --------------- session_set_save_handler("none","none","read","write","none","none"); session_start(); echo "2 ".getcwd()."<br>"; function none() { return true; } function read($id) { echo "1 ".getcwd()."<br>"; } function write($id,$val) { echo "3 ".getcwd()."<br>"; } Expected result: ---------------- 1 H:\sgs\src Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at H:\sgs\src\test_session.php:14) in H:\sgs\src\test_session.php on line 5 2 H:\sgs\src 3 H:\sgs\src Actual result: -------------- 1 H:\sgs\src Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at H:\sgs\src\test_session.php:14) in H:\sgs\src\test_session.php on line 5 2 H:\sgs\src 3 H:\Development\Apache2_php5\bin