From: php-qa at sebatianmendel dot de Operating system: Windows XP SP2 PHP version: 5.3CVS-2008-01-29 (snap) PHP Bug Type: Session related Bug description: backslashes in session save path are not escaped in error message
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] [EMAIL PROTECTED] 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 bug report at http://bugs.php.net/?id=43962&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43962&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43962&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43962&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43962&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43962&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43962&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43962&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43962&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43962&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43962&r=support Expected behavior: http://bugs.php.net/fix.php?id=43962&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43962&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43962&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43962&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43962&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43962&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43962&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43962&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43962&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43962&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43962&r=mysqlcfg