#43962 [Opn->Asn]: backslashes in session save path are not escaped in error message
ID: 43962
Updated by: jani@php.net
Reported By: php-qa at sebatianmendel dot de
-Status: Open
+Status: Assigned
Bug Type: Session related
Operating System: win32 only
PHP Version: 5CVS-2008-01-29 (snap)
-Assigned To:
+Assigned To: pajoye
New Comment:
Assigned to the windows port maintainer.
Previous Comments:
------------------------------------------------------------------------
[2008-01-29 08:05:49] php-qa at sebatianmendel dot de
Description:
------------
re-submitting this bug, cause: "You can not comment bogus reports or
change their status."
[19 Dec 2007 7:02am UTC] php-qa at sebastianmendel dot de
backslashes in the session.save_path are not properly escaped when
printed out in an error message
[29 Jan 12:10am UTC] tony2001@php.net
Printing "C:\" doesn't require any escaping.
It's you who needs to escape the slashes when you enter them in your
php.ini.
[2008-01-29] php-qa at sebastianmendel dot de
since when? and where is this written?
if you are right than at least this is a documentation bug
but i do not think so
from php.ini-recommended:
[...]
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
[...]
and \ in session save path works, it is just the error message which is
wrong! and using 'c:\temp' always worked and still works as expected.
the problem is not the error displayed, the problem is in the displayed
error. (the error was a local problem already fixed)
Reproduce code:
---------------
php.ini:
session.save_path = "C:\temp"
continue a session without valid session file
Expected result:
----------------
session_start() : open(C:\temp\sess_ifj79uququ2tu2gnhu8ol2cs81,
O_RDWR)
failed: Invalid argument (22)
Actual result:
--------------
session_start() : open(C: emp\sess_ifj79uququ2tu2gnhu8ol2cs81, O_RDWR)
failed: Invalid argument (22)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43962&edit=1
Thread (3 messages)