Bug 905 - [Chameleon - Core] session warning message
: [Chameleon - Core] session warning message
Status: NEW
: Chameleon
Core
: 2.0
: PC Linux
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-12-20 16:33 by
Modified: 2005-01-11 08:24 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-12-20 16:33:44
Warning: touch(): Utime failed: Operation not permitted in
/ms4w/apps/php_utils/src/session/session.php on line 315

this message appears on Linux regularly, not sure why it would.  The relavent
code is:

if ( !(PHP_OS == "WINNT" || PHP_OS == "WIN32") )
{
  touch($GLOBALS['gszSessSavePath']."/deleteme", time()-$nMaxLifeTime*60);
  system("find ".$GLOBALS['gszSessSavePath']." -name sess_* ! -newer ".
         $GLOBALS['gszSessSavePath']."/deleteme -exec rm -rf {} \; ");
  return true;
}

it is failing on the 'touch' command with the above message.  A quick google
reveals this is pretty common, especially with Smarty.  What I don't know is how
to fix it.  For now, I've committed a quick fix to supress the warning from the
touch (prepending @) because it doesn't seem to affect anything.
------- Comment #1 From 2005-01-11 08:24:05 -------
this could have been related to bug 918.