|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-04-03 13:52 UTC] julientld at free dot fr
Description:
------------
Hi,
I use the wincache session handler (session.save_handler = wincache) since the avaibility of WinCache 1.1 on January 2010 without any problem.
This morning I have had a problem. My PHP scripts which create sessions to login to my private interface didn't work while I didn't change anything to this code since several years.
I have restarted IIS (iisreset) but same thing, impossible to create sessions with PHP.
I looked the PHP log file and then I saw the following line :
PHP Warning: Unknown: Failed to write session data (wincache). Please verify that the current setting of session.save_path is correct (C:\Temp\) in Unknown on line 0
I didn't change the C:\Temp directory and it is well writable for the IIS users.
Then I have disabled the wincache handler for PHP sessions in the php.ini file (set it to "files") and my sessions work again now. I have then set session.save_handler to wincache and it's rerun fine now....
Any idea what happened ? And Why the restart of IIS didn't solve this crash of the wincache sessions handler ?
Thanks.
Reproduce code:
---------------
I can't reproduce the bug because since I disabled the wincache stream for sessions and then reenabled it, all run fine.
This is an example of my code for writing and reading sessions.
Script create_session.php :
<?php
session_start();
$_SESSION["toto"] = "toto";
header("location: read_session.php");
exit;
?>
Script read_session.php :
<?php
session_start();
if(isset($_SESSION["toto"]))
{
echo("All is ok");
}
?>
Expected result:
----------------
I expect to get the string "All is ok" in the browser but the $_SESSION["toto"] variable was not set. And I also expect to do not have the error in the PHP log file.
Actual result:
--------------
PHP Warning: Unknown: Failed to write session data (wincache). Please verify that the current setting of session.save_path is correct (C:\Temp\) in Unknown on line 0
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jan 19 09:00:02 2026 UTC |
Fault offset 0xae64 in that version of php_wincache.dll is in the fcnotify_check function. The AV occurs because a non-null notify record was found, but the record pointer must be in invalid memory (deref'ing through a bad pointer). If you can get a crash dump of the repro, please send me mail offline and I can investigate. Are you using multiple versions of PHP (and WinCache) on a single server? If so, there may be an easy config adjustment to ensure this doesn't happen. Thx! --E.