[FX.php List] No GC (Garbage Collection) in IIS installation
Leo R. Lundgren
leo at finalresort.org
Sat Mar 20 11:15:22 MDT 2010
BTW, do you use subfolders in the save_path (a path like
"<number>;<path>" instead of just "<path>")?
20 mar 2010 kl. 18.14 skrev Leo R. Lundgren:
> Interesting.
>
> Did you change the session.save_path in the php.ini file, or did you
> do it using PHP code? Can you verify that the path is really what
> you indended it to be, and that it hasn't been evaluated different,
> for example some chars being escaped and getting another meaning or
> something like that? Also, did you try using / instead of \ in the
> path? Just a thought.
>
> I think that in any case, the problem is apparently that the session
> extension fails to open the directory in question. The code in the
> extension looks like this:
>
> static int ps_files_cleanup_dir(const char *dirname, int maxlifetime
> TSRMLS_DC)
> {
> <snip>
>
> dir = opendir(dirname);
> if (!dir) {
> php_error_docref(NULL TSRMLS_CC, E_NOTICE, "ps_files_cleanup_dir:
> opendir(%s) failed: %s (%d)", dirname, strerror(errno), errno);
> return (0);
> }
>
> <snip>
> }
>
> So I guess that's about it. Something is wrong with the access to
> that directory :) I don't know if it would give a specific error
> message if the folder it tries to find doesn't exist, so maybe this
> is the problem?
>
> You could try changing the path to something you know doesn't exist,
> and compare the error message. If you want to provoke the problem on
> each request, try changing the settings like this in php.ini:
>
> session.gc_probability = 1
> session.gc_divisor = 1
>
> -|
>
>
> 20 mar 2010 kl. 17.48 skrev Jonathan Schwartz:
>
>> Hi Folks,
>>
>> Breaking out from the previous post....
>>
>> My problem is that a Windows system is NOT clearing session files,
>> and producing this error from time to time:
>>
>> ps_files_cleanup_dir:opendir(C:\WINDOWS\TEMP) failed: No error (0)
>>
>> The original phpini had no entry for the path. I added "C:\WINDOWS
>> \Temp" ,but still no GC.
>>
>> Note...the error doesn't say "permission denied".
>>
>> Any clues?
>>
>> Thanks
>>
>> Jonathan
>> --
>> Jonathan Schwartz
>> Exit 445 Group
>> jonathan at exit445.com
>> http://www.exit445.com
>> 415-370-5011
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
>
> -|
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
-|
More information about the FX.php_List
mailing list